function checkBusiness(){
	var doc,str,s;
	doc=document.businessenquiry;
	s=0;
	
	if(!doc.enq_subject.value.length){
		alert("Please Enter Subject");
		doc.enq_subject.focus();
		return false;
	}
	if(!doc.enq_name.value.length){
		alert("Please Enter Name");
		doc.enq_name.focus();
		return false;
	}
	if(doc.enq_name.value.length >0 && parseFloat(doc.enq_name.value)){
		alert("Please Enter Alphabets only in Name");
		doc.enq_name.value="";
		doc.enq_name.focus();
		return false;
	}
	if(doc.enq_company_name.value.length >0 && parseFloat(doc.enq_company_name.value)){
		alert("Please Enter Alphabets only in Company Name");
		doc.enq_company_name.value="";
		doc.enq_company_name.focus();
		return false;
	}
	if(!doc.enq_city.value.length){
		alert("Please Enter City");
		doc.enq_city.focus();
		return false;
	}
	if(!doc.enq_country.value.length){
		alert("Please Enter Country");
		doc.enq_country.focus();
		return false;
	}
	if(!doc.enq_email.value.length){
		alert("Please Enter Email");
		doc.enq_email.focus();
		return false;
	}
	if(doc.enq_email.value.indexOf('@')==-1 || doc.enq_email.value.indexOf('.')==-1){
		alert("Please Enter Email Correctly");
		doc.enq_email.value="";
		doc.enq_email.focus();
		return false;
	}
	
	if(!doc.enq_comments.value.length){
		alert("Please Enter Comments");
		doc.enq_comments.focus();
		return false;
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openwin(nm,width,height){
	var name=nm;
	var path="";
	var pop="";
	if (pop && !pop.closed) {
	   pop.close();
	}
	pop=eval("window.open('"+name+"','NewWIN','chrome[4],toolbar=no,left=5,top=5,width="+width+",height="+height+",directories=no,menubar=no,SCROLLBARS=yes,left=2,right=2')");
	if (!pop.opener) popUpWin.opener = self;
}
function validphone(txt){
	var str=/^[\+0-9][0-9_-]+\d$/;
	if(!str.test(txt)){ //+91-011-41428132
		return false;
	}
	else{
		return true;
	}
}

function checkform(){
	var doc,str,s;
	doc=document.buy_now;
	s=0;
	
	if(!doc.first_name.value.length){
		alert("Please Enter First Name");
		doc.first_name.focus();
		return false;
	}
	if(doc.first_name.value.indexOf('<')!=-1 || doc.first_name.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In First Name");
		doc.first_name.focus();
		return false;
	}
	if(doc.first_name.value.length >0 && parseFloat(doc.first_name.value)){
		alert("Please Enter Alphabets only in First Name");
		doc.first_name.value="";
		doc.first_name.focus();
		return false;
	}
	if(!doc.last_name.value.length){
		alert("Please Enter Last Name");
		doc.last_name.focus();
		return false;
	}
	if(doc.last_name.value.indexOf('<')!=-1 || doc.last_name.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Last Name");
		doc.last_name.focus();
		return false;
	}
	if(doc.last_name.value.length >0 && parseFloat(doc.last_name.value)){
		alert("Please Enter Alphabets only in Last Name");
		doc.last_name.value="";
		doc.last_name.focus();
		return false;
	}
	if(!doc.email.value.length){
		alert("Please Enter Email");
		doc.email.focus();
		return false;
	}
	if(doc.email.value.indexOf('@')==-1 || doc.email.value.indexOf('.')==-1){
		alert("Please Enter Email Correctly");
		doc.email.value="";
		doc.email.focus();
		return false;
	}
	if(doc.email.value.indexOf('<')!=-1 || doc.email.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Email");
		doc.email.focus();
		return false;
	}
	if(doc.phone_no.value!='' && !validphone(doc.phone_no.value)){
		alert("Please Enter Phone No. 000-000-0000 Format");
		doc.phone_no.focus();
		return false;
	}
	if(!doc.shipping_address.value.length){
		alert("Please Enter Shipping Address");
		doc.shipping_address.focus();
		return false;
	}
	if(doc.shipping_address.value.indexOf('<')!=-1 || doc.shipping_address.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Shipping Address");
		doc.shipping_address.focus();
		return false;
	}
	if(!doc.shipping_city.value.length){
		alert("Please Enter Shipping City");
		doc.shipping_city.focus();
		return false;
	}
	if(doc.shipping_city.value.indexOf('<')!=-1 || doc.shipping_city.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Shipping City");
		doc.shipping_city.focus();
		return false;
	}
	if(doc.shipping_city.value.length >0 && parseFloat(doc.shipping_city.value)){
		alert("Please Enter Alphabets only in Shipping City");
		doc.shipping_city.value="";
		doc.shipping_city.focus();
		return false;
	}
	if(!doc.shipping_state.value.length){
		alert("Please Enter Shipping State");
		doc.shipping_state.focus();
		return false;
	}
	if(doc.shipping_state.value.indexOf('<')!=-1 || doc.shipping_state.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Shipping State");
		doc.shipping_state.focus();
		return false;
	}
	if(doc.shipping_state.value.length >0 && parseFloat(doc.shipping_state.value)){
		alert("Please Enter Alphabets only in Shipping State");
		doc.shipping_state.value="";
		doc.shipping_state.focus();
		return false;
	}
	if(!doc.shipping_zip.value.length){
		alert("Please Enter Shipping Zip");
		doc.shipping_zip.focus();
		return false;
	}
	if(doc.shipping_zip.value.indexOf('<')!=-1 || doc.shipping_zip.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Shipping Zip");
		doc.shipping_zip.focus();
		return false;
	}
	if(!doc.shipping_country.value.length){
		alert("Please Enter Shipping Country");
		doc.shipping_country.focus();
		return false;
	}
	if(doc.shipping_country.value.indexOf('<')!=-1 || doc.shipping_country.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Shipping Country");
		doc.shipping_country.focus();
		return false;
	}
	if(doc.shipping_country.value.length >0 && parseFloat(doc.shipping_country.value)){
		alert("Please Enter Alphabets only in Shipping Country");
		doc.shipping_country.value="";
		doc.shipping_country.focus();
		return false;
	}
	if(document.getElementById('Same').checked == 1){
			doc.billing_address.value=doc.shipping_address.value;
			doc.billing_city.value=doc.shipping_city.value;
			doc.billing_state.value=doc.shipping_state.value;
			doc.billing_address.value=doc.shipping_address.value;
			doc.billing_zip.value=doc.shipping_zip.value;
			doc.billing_country.value=doc.shipping_country.value;
	}
	else{
		if(!doc.billing_address.value.length){
			alert("Please Enter Billing Address");
			doc.billing_address.focus();
			return false;
		}
		if(doc.billing_address.value.indexOf('<')!=-1 || doc.billing_address.value.indexOf('>')!=-1){
			alert("Please Don't Use HTML Tags In Billing Address");
			doc.billing_address.focus();
			return false;
		}
		if(!doc.billing_city.value.length){
			alert("Please Enter Billing City");
			doc.billing_city.focus();
			return false;
		}
		if(doc.billing_city.value.indexOf('<')!=-1 || doc.billing_city.value.indexOf('>')!=-1){
			alert("Please Don't Use HTML Tags In Billing City");
			doc.billing_city.focus();
			return false;
		}
		if(doc.billing_city.value.length >0 && parseFloat(doc.billing_city.value)){
			alert("Please Enter Alphabets only in Billing City");
			doc.billing_city.value="";
			doc.billing_city.focus();
			return false;
		}
		if(!doc.billing_state.value.length){
			alert("Please Enter Billing State");
			doc.billing_state.focus();
			return false;
		}
		if(doc.billing_state.value.indexOf('<')!=-1 || doc.billing_state.value.indexOf('>')!=-1){
			alert("Please Don't Use HTML Tags In Billing State");
			doc.billing_state.focus();
			return false;
		}
		if(doc.billing_state.value.length >0 && parseFloat(doc.billing_state.value)){
			alert("Please Enter Alphabets only in Billing State");
			doc.billing_state.value="";
			doc.billing_state.focus();
			return false;
		}
		if(!doc.billing_zip.value.length){
			alert("Please Enter Billing Zip");
			doc.billing_zip.focus();
			return false;
		}
		if(doc.billing_zip.value.indexOf('<')!=-1 || doc.billing_zip.value.indexOf('>')!=-1){
			alert("Please Don't Use HTML Tags In Billing Zip");
			doc.billing_zip.focus();
			return false;
		}
		if(!doc.billing_country.value.length){
			alert("Please Enter Billing Country");
			doc.billing_country.focus();
			return false;
		}
		if(doc.billing_country.value.indexOf('<')!=-1 || doc.billing_country.value.indexOf('>')!=-1){
			alert("Please Don't Use HTML Tags In Billing Country");
			doc.billing_country.focus();
			return false;
		}
		if(doc.billing_country.value.length >0 && parseFloat(doc.billing_country.value)){
			alert("Please Enter Alphabets only in Billing Country");
			doc.billing_country.value="";
			doc.billing_country.focus();
			return false;
		}	
	}
}
function sameadd(){
	doc=document.buy_now;
	if(document.getElementById('Same').checked == 1){
		doc.billing_address.value=doc.shipping_address.value;
		doc.billing_city.value=doc.shipping_city.value;
		doc.billing_state.value=doc.shipping_state.value;
		doc.billing_address.value=doc.shipping_address.value;
		doc.billing_zip.value=doc.shipping_zip.value;
		doc.billing_country.value=doc.shipping_country.value;
	}
	else{
		doc.billing_address.value="";
		doc.billing_city.value="";
		doc.billing_state.value="";
		doc.billing_address.value="";
		doc.billing_zip.value="";
		doc.billing_country.value="";
	}
}
function checkemail(){
	var doc,str,s;
	doc=document.forgetfrm;
	s=0;
	
	if(!doc.email.value.length){
		alert("Please Enter Email");
		doc.email.focus();
		return false;
	}
	if(doc.email.value.indexOf('@')==-1 || doc.email.value.indexOf('.')==-1){
		alert("Please Enter Email Correctly");
		doc.email.value="";
		doc.email.focus();
		return false;
	}
	if(doc.email.value.indexOf('<')!=-1 || doc.email.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Email");
		doc.email.focus();
		return false;
	}
}
function checkLogin(){
	var doc,str,s;
	doc=document.login_frm;
	s=0;
	
	if(!doc.user_name.value.length){
		alert("Please Enter User Name");
		doc.user_name.focus();
		return false;
	}
	if(!doc.password.value.length){
		alert("Please Enter Password");
		doc.password.focus();
		return false;
	}
}
function checkregistration(){
	var doc,str,s;
	doc=document.registerfrm;
	s=0;
	
	if(!doc.first_name.value.length){
		alert("Please Enter First Name");
		doc.first_name.focus();
		return false;
	}
	if(doc.first_name.value.indexOf('<')!=-1 || doc.first_name.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In First Name");
		doc.first_name.focus();
		return false;
	}
	if(doc.first_name.value.length >0 && parseFloat(doc.first_name.value)){
		alert("Please Enter Alphabets only in First Name");
		doc.first_name.value="";
		doc.first_name.focus();
		return false;
	}
	if(!doc.last_name.value.length){
		alert("Please Enter Last Name");
		doc.last_name.focus();
		return false;
	}
	if(doc.last_name.value.indexOf('<')!=-1 || doc.last_name.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Last Name");
		doc.last_name.focus();
		return false;
	}
	if(doc.last_name.value.length >0 && parseFloat(doc.last_name.value)){
		alert("Please Enter Alphabets only in Last Name");
		doc.last_name.value="";
		doc.last_name.focus();
		return false;
	}
	if(!doc.membership_no.value.length){
		alert("Please Enter Membership No");
		doc.membership_no.focus();
		return false;
	}
	if(doc.membership_no.value.indexOf('<')!=-1 || doc.membership_no.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Membership No");
		doc.membership_no.focus();
		return false;
	}
	if(doc.company_name.value.indexOf('<')!=-1 || doc.company_name.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Company Name");
		doc.company_name.focus();
		return false;
	}
	if(!doc.address_1.value.length){
		alert("Please Enter Address 1");
		doc.address_1.focus();
		return false;
	}
	if(doc.address_1.value.indexOf('<')!=-1 || doc.address_1.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Address 1");
		doc.address_1.focus();
		return false;
	}
	if(doc.address_2.value.indexOf('<')!=-1 || doc.address_2.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Address 2");
		doc.address_2.focus();
		return false;
	}
	if(!doc.city.value.length){
		alert("Please Enter City");
		doc.city.focus();
		return false;
	}
	if(doc.city.value.indexOf('<')!=-1 || doc.city.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In City");
		doc.city.focus();
		return false;
	}
	if(doc.city.value.length >0 && parseFloat(doc.city.value)){
		alert("Please Enter Alphabets only in City");
		doc.city.value="";
		doc.city.focus();
		return false;
	}
	if(!doc.state.value.length){
		alert("Please Enter State");
		doc.state.focus();
		return false;
	}
	if(doc.state.value.indexOf('<')!=-1 || doc.state.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In State");
		doc.state.focus();
		return false;
	}
	if(doc.state.value.length >0 && parseFloat(doc.state.value)){
		alert("Please Enter Alphabets only in State");
		doc.state.value="";
		doc.state.focus();
		return false;
	}
	if(!doc.zip.value.length){
		alert("Please Enter Zip");
		doc.zip.focus();
		return false;
	}
	if(doc.zip.value.indexOf('<')!=-1 || doc.zip.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Zip");
		doc.zip.focus();
		return false;
	}
	if(!doc.country.value.length){
		alert("Please Enter Country");
		doc.country.focus();
		return false;
	}
	if(doc.country.value.indexOf('<')!=-1 || doc.country.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Country");
		doc.country.focus();
		return false;
	}
	if(doc.country.value.length >0 && parseFloat(doc.country.value)){
		alert("Please Enter Alphabets only in Country");
		doc.country.value="";
		doc.country.focus();
		return false;
	}
	if(!doc.email.value.length){
		alert("Please Enter Email");
		doc.email.focus();
		return false;
	}
	if(doc.email.value.indexOf('@')==-1 || doc.email.value.indexOf('.')==-1){
		alert("Please Enter Email Correctly");
		doc.email.value="";
		doc.email.focus();
		return false;
	}
	if(doc.email.value.indexOf('<')!=-1 || doc.email.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Email");
		doc.email.focus();
		return false;
	}
	if(!doc.user_name.value.length){
		alert("Please Enter User Name");
		doc.user_name.focus();
		return false;
	}
	if(doc.user_name.value.indexOf('<')!=-1 || doc.user_name.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In User Name");
		doc.user_name.focus();
		return false;
	}
	if(!doc.password.value.length){
		alert("Please Enter Password");
		doc.password.focus();
		return false;
	}
	if(!doc.confirm_password.value.length){
		alert("Please Enter Confirm Password");
		doc.confirm_password.focus();
		return false;
	}
	if(doc.confirm_password.value!=doc.password.value){
		alert("Please Enter Confirm Password simillar to Password");
		doc.confirm_password.focus();
		return false;
	}
}
function checkdigest(){
	var doc,str,s;
	doc=document.digest;
	s=0;
	if(doc.company_name.value=='Company name' || doc.company_name.value==''){
		alert("Please Enter Company name");
		doc.company_name.focus();
		return false;
	}
	if(doc.racquet_name.value=='Racquet name' || doc.racquet_name.value==''){
		alert("Please Enter Racquet name");
		doc.racquet_name.focus();
		return false;
	}
}
function checkstringsearch(){
	var doc,str,s;
	doc=document.stringer_search;
	s=0;
	
	if(doc.stg_city.value=='City' && doc.stg_state.value=='State' && doc.stg_zip.value=='ZIP' && doc.stg_country.value=='Country'){
		alert("Please Enter One Criteria of Search");
		doc.stg_city.focus();
		return false;
	}
}
function checkprod(){
	var count,c;
	var frm=document.product_finder;
	count=frm.elements.length;
	c=0;
	for (i=0; i < count; i++){
		if(frm.elements[i].type == 'radio'){
			if(frm.elements[i].checked == 1){
				c = 1;
			}
		}
	}
	if(c == 0){
		alert("Please Select One");
		return false;
	}
}
function checknews(){
	var doc,str,s;
	doc=document.newsletterfrm;
	s=0;
	
	if(!doc.your_name.value.length){
		alert("Please Enter Your Name");
		doc.your_name.focus();
		return false;
	}
	if(doc.your_name.value.indexOf('<')!=-1 || doc.your_name.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Your Name");
		doc.your_name.focus();
		return false;
	}
	if(doc.your_name.value.length >0 && parseFloat(doc.your_name.value)){
		alert("Please Enter Alphabets only in Your Name");
		doc.your_name.value="";
		doc.your_name.focus();
		return false;
	}
	if(!doc.your_email.value.length){
		alert("Please Enter Your Email");
		doc.your_email.focus();
		return false;
	}
	if(doc.your_email.value.indexOf('@')==-1 || doc.your_email.value.indexOf('.')==-1){
		alert("Please Enter Your Email Correctly");
		doc.your_email.value="";
		doc.your_email.focus();
		return false;
	}
	if(doc.your_email.value.indexOf('<')!=-1 || doc.your_email.value.indexOf('>')!=-1){
		alert("Please Don't Use HTML Tags In Your Email");
		doc.your_email.focus();
		return false;
	}
}
function checkrefer(){
	var doc=document.refer;
	if(doc.your_name.value==""){
		alert("Please Enter Your Name");
		doc.your_name.focus();
		return false;	
	}
	if(doc.friend_name.value==""){
		alert("Please Enter Your Friend Name");
		doc.friend_name.focus();
		return false;	
	}
	if(doc.your_email.value==""){
		alert("Please Enter Your EmailID");
		doc.your_email.focus();
		return false;	
	}
	if(doc.your_email.value.indexOf('@')==-1 || doc.your_email.value.indexOf('@')==-1){
		alert("Please Enter Your EmailID Correctly");
		doc.your_email.value="";
		doc.your_email.focus();
		return false;	
	}
	if(doc.friend_email.value==""){
		alert("Please Enter Friend's EmailID");
		doc.friend_email.focus();
		return false;	
	}
	if(doc.friend_email.value.indexOf('@')==-1 || doc.friend_email.value.indexOf('@')==-1){
		alert("Please Enter Friend's EmailID Correctly");
		doc.friend_email.value="";
		doc.friend_email.focus();
		return false;	
	}	
}
function checkreply(){
	var doc,str,s;
	doc=document.replyfrm;
	s=0;
	
	if(!doc.your_reply.value.length){
		alert("Please Enter Your Reply");
		doc.your_reply.focus();
		return false;
	}
}
function checkcomments(){
	var doc,str,s;
	doc=document.replyfrm;
	s=0;
	
	if(!doc.your_comments.value.length){
		alert("Please Enter Your Comments");
		doc.your_comments.focus();
		return false;
	}
}
