			function echeck(str) {
				var at="@"
				var dot="."
				var lat=str.indexOf(at)
				var lstr=str.length
				var ldot=str.indexOf(dot)
		
				if (str.indexOf(at)==-1){
		   		//alert("Invalid E-mail ID")
		   			return false
				}
				if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   		//alert("Invalid E-mail ID")
		   			return false
				}
				if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    	//alert("Invalid E-mail ID")
		    		return false
				}
		 		if (str.indexOf(at,(lat+1))!=-1){
				//alert("Invalid E-mail ID")
		    		return false
		 		}
		 		if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    	//alert("Invalid E-mail ID")
		    		return false
		 		}
		 		if (str.indexOf(dot,(lat+2))==-1){
		    	//alert("Invalid E-mail ID")
		    		return false
		 		}
		 		if (str.indexOf(" ")!=-1){
		    	//alert("Invalid E-mail ID")
		    	return false
		 		}
 		 		return true					
			}
	
			function SubmitForm() {
    			pleaseComplete = "";
    			nctr = 1;

	    		if(document.form1.Name.value           =="") { pleaseComplete += nctr++ + ". Name\n";}
	    		if(document.form1.Address.value        =="") { pleaseComplete += nctr++ + ". Address\n";}
	   			if(document.form1.DayPhone.value       =="") { pleaseComplete += nctr++ + ". Day Phone\n";}
	    
	    		if(document.form1.EmailAddress1.value  =="") 
	    		{ 
	    			pleaseComplete += nctr++ + ". Email Address\n";
	    		} else {
	    			if (!echeck(document.form1.EmailAddress1.value)) 
	    			{
	    				pleaseComplete += nctr++ + ". Not a valid E-Mail Address!\n";
	    			} else {
						if(document.form1.EmailAddress1.value  != document.form1.EmailAddress2.value) 
						{
							pleaseComplete += nctr++ + ". Email address's Do not match\n";
						}	    	
	    			} 
	    		}
	  
	    		if(document.form1.OrderNumber.value    =="") { pleaseComplete += nctr++ + ". Order Number\n";}
	    		if(document.form1.Parts.value          =="") { pleaseComplete += nctr++ + ". Parts Number and Description\n";}
	    		if(document.form1.Reason.value         =="") { pleaseComplete += nctr++ + ". Reason for Return\n";}
    			if(pleaseComplete) { alert('Please complete the following fields:\n' + pleaseComplete); return false; }

    			return true;
  			}
 
 			function validateFeebackSubmit() {
				var incompleteMsg = "";
				var feedbackCtr	= 1;

		       	if (document.frmFeedBack.comment_topic.value == "")
				{
					incompleteMsg += feedbackCtr++ + ". Please choose a comment topic.\n"; 
				}
		       	
				if ( document.frmFeedBack.comments.value != "" )
		       	{ 
		       		if(document.frmFeedBack.comments.value == "Please enter your comments about this webpage here."){
		       			incompleteMsg += feedbackCtr++ + ". Please enter your comments about this webpage.\n";
		       		}
		       	} else {
		       		incompleteMsg += feedbackCtr++ + ". Please enter your comments about this webpage.\n";
		       	}

		       	if ( document.frmFeedBack.optAccomplish.value == "No" ) 
		       	{
		       		if ( document.frmFeedBack.message.value == "" ){
		       			incompleteMsg += feedbackCtr++ + ". Please tell us why you did not accomplish what you wanted in this webpage.\n";         	
		       		}
		       	}
		       	
		       	if ( document.frmFeedBack.txtEmail.value != "" )
		       	{
		       		if(!echeck(document.frmFeedBack.txtEmail.value) ){ 
		       			incompleteMsg += feedbackCtr++ + ". Not a valid E-Mail Address.\n";
		       		}
		       	} else {
		       		incompleteMsg += feedbackCtr++ + ". Please enter your email address.\n";
				}
				
				if(incompleteMsg != "") { alert('Please complete the following fields:\n' + incompleteMsg); return false; }

		       	return true;
		  	}
		  	
		  	function clearTextArea(strComments){
		  		if(document.frmFeedBack.comments.value == "Please enter your comments about this webpage here."){
		  			document.frmFeedBack.comments.value = ""
		  		}
		  	}
			
			function textCounter(field,cntfield,maxlimit) {
				if (field.value.length > maxlimit){
					// if too long...trim it!
				   field.value = field.value.substring(0, maxlimit);
				// otherwise, update 'characters left' counter
				} else { 
				   cntfield.value = maxlimit - field.value.length;
				}
			}
			
			function validateCustomerSubmit() {
       			emptyCustomerData = "";
       			nbullet	= 1;
		       	
		       	if ( document.frmCustomerSupport.name.value == "")	{ emptyCustomerData += nbullet++ + ".	Missing Name.\n"; }
		       	if ( document.frmCustomerSupport.email.value != "" )
		       	{ 
		       		if ( !echeck(document.frmCustomerSupport.email.value) )
		       		{
		       			emptyCustomerData += nbullet++ + ".	Invalid E-mail.\n"
		       		}
		       	} else {
		       		emptyCustomerData += nbullet++ + ".	Missing E-Mail.\n"
				}
		       	if ( document.frmCustomerSupport.department.value == "" ) 	{ emptyCustomerData += nbullet++ + ".	Please choose a department.\n"; }
		       	//if ( document.frmCustomerSupport.rma.value == "" )			{ emptyCustomerData += nbullet++ + ".	Missing Order and Part #.\n"; }
		       	if ( document.frmCustomerSupport.message.value == "" )		{ emptyCustomerData += nbullet++ + ".	Message is empty"; }
		       	
		       	if(	emptyCustomerData != "") { alert('Please complete the following fields:\n' + emptyCustomerData); return false; }
		       	
		       	return true;
  			}
  			
  		function SubmitPriceMatchForm(){
  			emptyPriceMatchData = "";
      		nbullet	= 1;
	       	
	       	if ( document.frmPMatch.name.value == "")	{ emptyPriceMatchData += nbullet++ + ".	Missing Name.\n"; }
	       	if ( document.frmPMatch.email.value != "" )
	       	{ 
	       		if ( !echeck(document.frmPMatch.email.value) )
	       		{
	       			emptyPriceMatchData += nbullet++ + ".	Invalid E-mail.\n"
	       		}
	       	} else {
	       		emptyPriceMatchData += nbullet++ + ".	Missing E-Mail.\n"
			}
	       	if ( document.frmPMatch.brand.value == "" ) 		{ emptyPriceMatchData += nbullet++ + ".	Missing Part Info. (Brand).\n"; }
	       	if ( document.frmPMatch.sku.value == "" )			{ emptyPriceMatchData += nbullet++ + ".	Missing Part Info. (Part Number).\n"; }
	       	if ( document.frmPMatch.desc.value == "" )			{ emptyPriceMatchData += nbullet++ + ".	Missing Part Info. (Part Description).\n"; }
	       	
	       	if ( document.frmPMatch.compete_name.value == "" )	{ emptyPriceMatchData += nbullet++ + ".	Missing Pricing Info. (Competitor's Name).\n"; }
	       	if ( document.frmPMatch.compete_url.value == "" )	{ emptyPriceMatchData += nbullet++ + ".	Missing Pricing Info. (Competitor's URL).\n"; }
	       	if ( document.frmPMatch.compete_price.value == "" )	{ emptyPriceMatchData += nbullet++ + ".	Missing Pricing Info. (Competitor's Price).\n"; }
	       	if ( document.frmPMatch.compete_charge.value == "" ){ emptyPriceMatchData += nbullet++ + ".	Missing Pricing Info. (Competitor's Shipping Charge).\n"; }
	       	if ( document.frmPMatch.price.value == "" )			{ emptyPriceMatchData += nbullet++ + ".	Missing Pricing Info. (Our Price)"; }
	       	
	       	if(	emptyPriceMatchData != "") { alert('Please complete the following fields:\n' + emptyPriceMatchData); return false; }
	       	
	       	return true;
  		}