
    function WidgetDropped( container, item, position )
    {
    }
    function right(e){ 
        if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) 
            return false; 
        else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { 
            alert('This Page is fully protected!'); return false; } 
        return true;
    }
    function DisableRightClick()
    {
//        document.onmousedown=right; 
//        if (document.layers) 
//            window.captureEvents(Event.MOUSEDOWN); 
//            window.onmousedown=right;
        
        if (document.layers){
            document.captureEvents(Event.MOUSEDOWN);
            document.onmousedown=clickNS4;}
        else if (document.all&&!document.getElementById){
            document.onmousedown=clickIE4;}
        document.oncontextmenu=new Function("return false")
    }
    var message="Function Disabled!";
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;}}

    function clickNS4(e){
        if (document.layers||document.getElementById&&!document.all){
            if (e.which==2||e.which==3){
            alert(message);
            return false;}}}

    
	//This fuction is explicitly for Custom Form Builder
	function showme()
{ 
    var ViewMode='<%=Session["ViewMode"].ToString()%>'; 
    if (ViewMode!='Edit')
    {
        var IsPreview='<% if (!Object.Equals(Session["SDMIsPreview"], null)){Response.Write(Session["SDMIsPreview"].ToString());}else{Response.Write("");} %>';
        var SubDomain='<% if (!Object.Equals(Session["SDMCurrentSubDomainName"], null)){Response.Write(Session["SDMCurrentSubDomainName"].ToString());}else{Response.Write("");} %>';
        var PageName='<% if (!Object.Equals(Session["SDMCurrentPageName"], null)){Response.Write(Session["SDMCurrentPageName"].ToString());}else{Response.Write("");} %>';
        var src='<%=ConfigurationManager.AppSettings["appRoot"].ToString()%>FormMail/FormMail.asp?SubDomain=' + SubDomain + '&IsPreview=' + IsPreview + '&PageName=' + PageName; 
        document.getElementById("frmDefault").method="post"; 
        document.getElementById("frmDefault").action=src; 
        return true;
    }
    else
    {
        alert("Please use Preview/Publish mode to submit this form.");
        return false;
    }
}
	
	
