function IsTrialRegistrationComplete()
{
//used by download.aspx
var first = document.all.firstname.value;
var last = document.all.lastname.value;
var company = document.all.firm.value;
var email = document.all.email.value; 
 if (email == "" ) {
        alert("e-mail is required");
		return false;
	}
if (email.indexOf(".") < 1 || email.indexOf("@") < 1)  
 {
        alert("E-mail format is incorrect");
		return false;
  }
 //insert comma at beg, end so email exactly matches item in free list
 email=email.substring(email.indexOf("@")+1);
 if(email.indexOf(".") == -1) 
 {
        alert("E-mail format is incorrect");
		return false;
  }
 email=email.substring(0,email.indexOf("."));
 email="," + email +",";
 var free=",gmail,hotmail,yahoo,ymail,rocketmail,live,msnhotmail,aol,12freeukisp,aim,amplimail,Arcor,aussiemail,bigstring,box,breakthru,care2,cityemail,Clivemail,dcemail,deadaddress,enveloped,fastmail,gawab,gmx,hotpop,Hushmail,icloud,icqmail,inbox,ip6,kifyt,Kongzimail,lavabit,lpemail,lycos,jmsmail,mail,mail2world,mailbigfile,mailmaniacs,mailvault,msn,myspace,mytrashmail,myway,netdove,netzero,opera,operamail,others,privacyharbor,rediffmail,RoadRunner,runbox,safe-mail,shtrudel,softhome,soodonims,spamavert,stoned,vfemail,webmail,Windows Live,wraped,zapak,zoho,gmx,juno,trashmail,mailinator,guerrillamail,trashymail,MailExpire,TemporaryInbox,MailEater,Jetable,10minutemail,dontreg,tempomail,tempemail,pokmail,spamfree24,kasmail,greensloth,anoninbox,mailcatch,";
  
 if (free.indexOf(email) != -1)
    {
        alert("Company email required(no free email account please)");
        return false;
    } 
if(email.toUpperCase().indexOf("SPAM") >= 0)
    {
        alert("Company email required");
        return false;
    } 
if (first == "" || last == "" ) { 
        alert("Both first and last names are required.");
		return false;
	}
if (company == "" ) {
       alert("company name is required");
		return false;
	}  

//    document.all.downloadfiles.disabled=false;
//    document.all.xmlmaxtrial.disabled=false;
//    document.all.xmlmaxtrialzip.disabled=false; 
//    document.all.xmlsplittrial.disabled=false;
//    document.all.xmlsplitzip.disabled=false;
//    document.all.xmlmaxtrial.style.background="white"; 
//    document.all.xmlmaxtrialzip.style.background="white";  
//    document.all.xmlsplittrial.style.background="white"; 
//    document.all.xmlsplitzip.style.background="white";  
//    document.all.tips.disabled=false;
//    document.all.tips.style.background="white";
//    document.all.errormsg.value="";
}
	
function CheckApplication() 
{
//used by support.aspx
var first = document.all.firstname.value;
var last = document.all.lastname.value;
var email = document.all.email.value;
//var company = document.all.company.value;
//var website = document.all.website.value;   

if (first == "" || last == "" ) { 
        alert("Both first and last names are required.");
		return false;
	}
if (email == "" ) {
        alert("e-mail is required");
		return false;
	}
if (email.indexOf(".") < 1 || email.indexOf("@") < 1)  
 {
        alert("E-mail format is incorrect");
		return false;
  }

//if (company == "" ) {
//       alert("company is required");
//		return false;
//	}  
//if (email.indexOf("@gmail") > 0) 
//        alert("Company e-mail required");
//		return false;
//	}  
//if (email.indexOf("@yahoo") > 0) 
//   {
//        alert("Company e-mail required");
//		return false;
//	}   
//if (email.indexOf("@hotmail") > 0) 
 //  {
 //       alert("Company e-mail required");
//		return false;
//	} 
//if (website == "" ){
//        alert("website is required");
//		return false;
//	}  
return true;
}

function CheckFirst()
{     
    var first = document.all.firstname.value;
    if (first == "" ) { 
        alert("First name is required.");
		return false;
}
return true;
}

