
	function verify_email(){
	
		document.registration2_form.date.value = Date();
		
		// Verify Email Address

		BadEmail="1";

		//alert(registration2_form.emailaddress.value);

		strEmail=registration2_form.emailaddress.value;

		if (strEmail.indexOf("@") != -1){
			strEmail = strEmail.split("@");
			//alert (strEmail);
			
			strDomain=strEmail[1].split("@");
			strDomain=strDomain.toString();
			strDomain=strDomain.toLowerCase();
			
			//alert (strDomain.length);
			if (strDomain.length > 0)
			{
			
				//alert (strDomain);
			
				if ( 
					(strDomain.indexOf("hotmail.") != -1) | 
					(strDomain.indexOf("yahoo.") != -1) | 
					(strDomain.indexOf("aol.") != -1) | 
					(strDomain.indexOf("passport.") != -1) | 
					(strDomain.indexOf("netscape.") != -1) | 
					(strDomain.indexOf("gmail.") != -1) | 
					(strDomain.indexOf("comcast.") != -1) | 
					(strDomain.indexOf("walla.") != -1) | 
					(strDomain.indexOf("hanafos.") != -1) | 
					(strDomain.indexOf("msn.") != -1)
					){
					BadEmail="0";
				}
			}
			else
			{
				BadEmail="0";
			}

		}
		else{
			BadEmail="0";
		}

		if (BadEmail != "1"){
			//location.href= "../../html/contact/ooops.html";
			return(false);
		}
		else{
			return(true);
		}
	}



	function initAll(){
		document.registration2_form.strOS_0.value = 0;
		document.registration2_form.strOS_1.value = 0;
		document.registration2_form.strOS_2.value = 0;
		document.registration2_form.strOS_3.value = 0;
		document.registration2_form.strOS_4.value = 0;
		document.registration2_form.strOS_5.value = 0;
		document.registration2_form.strOS_6.value = 0;
		document.registration2_form.strOS_7.value = 0;
		document.registration2_form.strOS_8.value = 0;
		document.registration2_form.strOS_9.value = 0;
		document.registration2_form.strOS_10.value = 0;
	}


	function Web_Source(){
	
		// Figure out from where the user got here
	
		mySource="Web Site";
		strURL = document.location.toString();
		if (strURL.indexOf("?") != -1){
			strVars1 = strURL.split("=");
			//alert(strVars1[1].toString());
			strVars = strVars1[1].split("&");
			//alert(strVars[0].toString());
	
			switch (strVars[0].toString()) {
				case "21" :
	     				mySource="Software Spectrum";
					break;
	   			case "22" :
	     				mySource="eContent";
					break;
	   			case "23" :
	     				mySource="Sponsored Ad - RSYNC";
					break;
	   			case "24" :
	     				mySource="Sponsored Ad - OpenDeploy";
					break;
	   			case "25" :
	     				mySource="Sponsored Ad - LookSmart";
					break;
				case "26" :
					mySource="Sponsored Ad - Overture / Yahoo";
					break;
				case "27" :
					mySource="Sponsored Ad - Kanoodle";
					break;
				case "28" :
					mySource="Sponsored Ad - Google - Content Deployment Campaign";
					break;
				case "29" :
					mySource="Web Wombat";
					break;
				case "30" :
					mySource="Web's Biggest";
					break;
				case "31" :
					mySource="RubberStamped";
					break;
				case "32" :
					mySource="AbiLogic";
					break;
				case "33" :
					mySource="Server Files";
					break;
				case "34" :
					mySource="Google - Serena Campaign";
					break;
				case "35" :
					mySource="Overture - Serena Campaign";
					break;
				case "36" :
					mySource="Google Metabase";
					break;					
				case "37" :
					mySource="Overture Metabase";
					break;					
				case "38" :
					mySource="iEntry WebProNews UK 17-oct-2005";
					break;					
				case "39" :
					mySource="iEntry WebProNewsFrance 11-oct-2005";
					break;					
				case "40" :
					mySource="iEntry ITmanagementNews 13-oct-2005";
					break;					
				case "41" :
					mySource="iEntry NetworkNewz 19-oct-2005";
					break;					
				case "42" :
					mySource="iEntry HITechEdge 19-oct-2005";
					break;					
				case "43" :
					mySource="iEntry WebproNewsAU 20-oct-2005";
					break;					
				case "44" :
					mySource="iEntry EnterpriseSecurityNews 20-oct-2005";
					break;					
				case "45" :
					mySource="iEntry SecurityProNews 20-oct-2005";
					break;					
				case "46" :
					mySource="iEntry CIOUK 27-oct-2005";
					break;					
				case "47" :
					mySource="iEntry WebMasterFreeUK 28-oct-2005";
					break;					
					
	 			default :
	     				mySource="Unknown";
			} 	
		}
		
		return (mySource);
	
	}
	
	function GoToWithParams(myURL)
	{
		strURL = document.location.toString();
		if (strURL.indexOf("?") != -1){
			strVars = strURL.split("?");
			strPairs = strVars[1].toString().split("&");
			//alert(strPairs);
	
			location.href=myURL + '?' + strPairs;
		}
		else{
			location.href=myURL;
		}
	}
	
	

//end