 		
  <!--
// check email

function checkemail(email)
{  
	
	if (email.indexOf(' ') >= 0 || email.indexOf('@') == -1 ||
	    email.length < 5 || email.indexOf('.') == -1 ||
	    email.lastIndexOf('.') < (email.length - 4) ||
	    email.lastIndexOf('@') > (email.length - 5) ||
	    email.lastIndexOf('.') > (email.length - 3) || 
	    email.lastIndexOf('_') > email.indexOf('@') ||
	    email.lastIndexOf('@') != email.indexOf('@',0) ||
	    email.indexOf('..',0) > -1 ||
	    email.indexOf('@.',0) > -1 ||
	    email.indexOf('.@',0) > -1 ||
	    email.indexOf(',',0) > -1)
	    
	{  
		if (bValidOrder)
		{
			alert("Please input a valid email");
			bValidOrder = false;
		}
	} 
	for (i = 0; i < email.length; i++) {
		
		if (isNaN(email.substring(i,i+1)) && 
		    email.substring(i,i+1) != "@" && 
		    email.substring(i,i+1) != "_" && 
		    email.substring(i,i+1) != "-" &&
		    email.substring(i,i+1) != "." &&
		   (email.substring(i,i+1).toLowerCase() < "a" || email.substring(i,i+1).toLowerCase() > "z")) 
		{  
			if (bValidOrder)
			{
				alert("Please input a valid email!");
				bValidOrder = false;
			}
		} 
	}
	
	
} 
	



function BoxChecking(strFieldValue, strMsg)
	{
		var blnCheck;
		blnCheck = false;
		
		
		for (i = 0; i < strFieldValue.length; i++) {
			if (strFieldValue[i].checked) {
				blnCheck = true;
				break;
			}
		}
		if (!blnCheck) {
			if (bValidOrder)
			{
				alert(strMsg);
				bValidOrder = false;
			}
		}
	}
	
// text field checking
	function TxtChecking(strFieldValue, strMsg)
	{
	
		var strLocal = strFieldValue.replace(/ /g, "");
		
		if (strLocal == "")
		{
			if (bValidOrder)
			{
				alert(strMsg);
				bValidOrder = false;
			}
		}
	}

// End -->

