﻿// JScript File


	
    function ValidateSearch()
	{
        var theform;
	    var postback = true;
    			
	    if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
		    theform = document.forms["aspnetForm"];
	    else
		    theform = document.aspnetForm;	
	    
	    if (alltrim(theform.ctl00$txtSearch.value) == "")
        {
            alert('Please Enter Search String');
            theform.ctl00$txtSearch.focus();  
	        return false; 
        }

		return true;
	}
	
	function ValidateBuyerAdvisorSubscribe()
	{
        var theform;
	    var postback = true;
	    
	    
    			
	    if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
		    theform = document.forms["aspnetForm"];
	    else
		    theform = document.aspnetForm;	
		    
	    
	    if (DivEmailFieldValidation(theform.ctl00$CISContentPlaceHolder$RightMenuNewsEventSection1$txtBuyerAdvisorSubscribe,'Please Enter Email Address','ctl00_CISContentPlaceHolder_RightMenuNewsEventSection1_Subscribe_div')==false)
		{
			theform.ctl00$CISContentPlaceHolder$RightMenuNewsEventSection1$txtBuyerAdvisorSubscribe.focus(); 
			return false;
		}
	    
	    

		return true;
	}
	
	
	function validate()
	{
        var theform;
		var postback = true;
				
		if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
			theform = document.forms["aspnetForm"];
		else
			theform = document.aspnetForm;	    
	   
	    /*
		if (DivEmptyFieldValidation(theform.ctl00_CISContentPlaceHolder_RightMenuNewsEventSection1_txtSearch,'Please Enter Text','ctl00_CISContentPlaceHolder_RightMenuNewsEventSection1_error_div')==false)
		{
			theform.ctl00_CISContentPlaceHolder_RightMenuNewsEventSection1_txtSearch.focus();
			postback = false; 
			return false;
		}	
		*/
		if (alltrim(theform.ctl00$CISContentPlaceHolder$RightMenuNewsEventSection1$txtSearch.value) == "")
        {
            alert('Please Enter Site Search String');
            theform.ctl00$CISContentPlaceHolder$RightMenuNewsEventSection1$txtSearch.focus();  
	        return false; 
        }
		
	}
	
	function ValidateBuyerAdvisorSubscribeForCMSPages()
	{
        var theform;
	    var postback = true;
	    
	    
    			
	    if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
		    theform = document.forms["aspnetForm"];
	    else
		    theform = document.aspnetForm;	
		    
	    
	    if (DivEmailFieldValidation(theform.ctl00$CISContentPlaceHolder$CMSUserControl1$txtBuyerAdvisorSubscribe,'Please Enter Email Address','ctl00_CISContentPlaceHolder_CMSUserControl1_Subscribe_div')==false)
		{
			theform.ctl00$CISContentPlaceHolder$CMSUserControl1$txtBuyerAdvisorSubscribe.focus(); 
			return false;
		}
	    
	    

		return true;
	}


