function roll_over(img_name, img_src){document.getElementById(img_name).src = img_src;}
function MM_goToURL() { //v3.0
			  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
			  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
			}
function submitForm() {
				var obj = document.getElementById("frmregister");
				obj.submit();
				return;
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function validateForm(){
	if(document.valuation.name.value==""){
	alert('Name is missing');
	return false;	
	}
	if(document.valuation.phone.value==""){
	alert('telephone is missing');
	return false;	
	}
	if(document.valuation.email.value==""){
	alert('Email is missing');
	return false;	
	}
	if(document.valuation.message.value==""){
	alert('Your Message to us');
	return false;	
	}
	return true;
	
}

function validatetel(){
/*	if(document.telvaluation.yname.value==""){
	alert('Name is missing');
	return false;	
	}
	if(document.telvaluation.ymail.value==""){
	alert('Email Address is missing');
	return false;	
	}
	if(document.telvaluation.ymail.value != "" && document.telvaluation.ymail.value.indexOf("@") == -1){
	alert("Enter a Valid Email");
	return false;
	}*/
	if(document.telvaluation.fmail1.value=="" ){
	alert('First Friend\'\s email addresses is missing');
	return false;	
	}
	if(document.telvaluation.fmail1.value != "" && document.telvaluation.fmail1.value.indexOf("@") == -1){
	alert("First Friend\'\s email is Invalid");
	return false;
	}
	if(document.telvaluation.fmail2.value==""){
	alert('Second Friend\'\s email address is missing');
	return false;	
	}
	if(document.telvaluation.fmail2.value != "" && document.telvaluation.fmail2.value.indexOf("@") == -1){
	alert("Second Friend\'\s email is Invalid");
	return false;
	}
	if(document.telvaluation.fmail3.value==""){
	alert('Third Friend\'\s email address is missing');
	return false;	
	}
	if(document.telvaluation.fmail3.value != "" && document.telvaluation.fmail3.value.indexOf("@") == -1){
	alert("Third Friend\'\s email is Invalid");
	return false;
	}
	return true;
	
}

function validateretail(){
	if(document.valuation.name.value==""){
	alert('Name is missing');
	return false;	
	}
	if(document.valuation.companyname.value==""){
	alert('Company Name is missing');
	return false;	
	}
	if(document.valuation.address.value==""){
	alert('Address is missing');
	return false;	
	}
	if(document.valuation.phone.value==""){
	alert('Contact No. is missing');
	return false;	
	}
	if(document.valuation.email.value==""){
	alert('Valid Email Address is missing');
	return false;	
	}
	if(document.valuation.webaddress.value==""){
	alert('Webaddress is missing');
	return false;	
	}
	if(document.valuation.message.value==""){
	alert('Your message is important to us');
	return false;	
	}
	return true;	
}
function check(){
if(document.paypal.terms.checked==false){
alert('plese agree the terms and conditions for purchase');
return false;	
}
return true;
}
function ClearTextBox1() {
	document.card.card_no.value = '';
}
function ClearTextBox2() {
	document.card.email.value = '';
}
function ClearTextBox3() {
	document.card.splash_email.value = '';
}
function validateFormCard(){
	if(document.card.card_no.value==""){
	alert('Enter card number');
	return false;	
	}
	if(document.card.card_no.value=="Enter card number"){
	alert('Enter card number');
	return false;	
	}
	if(document.card.email.value==""){
	alert('Enter email address');
	return false;	
	}
	if(document.card.email.value=="Enter email address"){
	alert('Enter email address');
	return false;	
	}
	return true;
	
}
function validateFormSplash(){
	if(document.card.splash_town.value=="selected"){
	alert('Select a City');
	return false;	
	}
	if(document.card.splash_email.value==""){
	alert('Enter email address');
	return false;	
	}
	if(document.card.splash_email.value=="Enter Email"){
	alert('Enter email address');
	return false;	
	}
	return true;
	
}
function validateFormCity(){
	if(document.city.city_go.value=="selected"){
	alert('Select a City');
	return false;	
	}
}
function Validate(){
	if(document.frmlogin.username.value==""){
	alert('UserName is missing');
	return false;	
	}
	if(document.frmlogin.password.value==""){
	alert('Password is missing');
	return false;	
	}
}
