window.defaultstatus = "Copyright (c) Sri Taralabalu Jagadguru Brihanmath, Sirigere.";

function IsValid(thisform) {
	if (thisform.fname.value == "") {
		alert ("Please enter your First Name") ;
		thisform.fname.focus() ;
		return false ;
	}
	if (thisform.addra.value == "") {
		alert ("Please enter your Address") ;
		thisform.addra.focus() ;
		return false ;
	}
	if (thisform.cityn.value == "") {
		alert ("Please enter your City") ;
		thisform.cityn.focus() ;
		return false ;
	}
	if (thisform.state.value == "") {
		alert ("Please enter your State/Province") ;
		thisform.state.focus() ;
		return false ;
	}
	if (thisform.zipcd.value == "") {
		alert ("Please enter your Zip/Postal Code") ;
		thisform.zipcd.focus() ;
		return false ;
	}
	if (thisform.cntry.value == "") {
		alert ("Please enter your Country") ;
		thisform.cntry.focus() ;
		return false ;
	}
	if (thisform.email.value == "" || thisform.email.value.indexOf('@',0) == -1 || thisform.email.value.indexOf('.',0) == -1) {
		alert ("Please enter your Email Address") ;
		thisform.email.focus() ;
		thisform.email.select() ;
		return false ;
	}
	document.idpost.email.value="";
	document.idform.email.value="";
	document.idpost.lid.value="0";
	return true;
}

function isLogin(thisform) {
	if (thisform.email.value == "" || thisform.email.value.indexOf('@',0) == -1 || thisform.email.value.indexOf('.',0) == -1) {
		alert ("Please enter your Email Address") ;
		thisform.email.focus() ;
		thisform.email.select() ;
		return false ;
	}
	if (thisform.lid.value == "") {
		alert ("Please enter your ID received by a Email.") ;
		thisform.lid.focus() ;
		return false ;
	}
	return true;
}

function isEmail(thisform) {
	document.idpost.email.value = document.idform.email.value;
	if (document.idpost.email.value == "" || document.idpost.email.value.indexOf('@',0) == -1 || document.idpost.email.value.indexOf('.',0) == -1) {
		alert ("Please enter your Email Address") ;
		document.idform.email.focus() ;
		document.idform.email.select() ;
		return false ;
	}
	return true;
}

function upDate(cnt) {
	if (cnt == 1) { document.panmailer.ccodea.value = document.panmailer.ccode.value; }
	if (cnt == 2) { document.panmailer.acodea.value = document.panmailer.acode.value; }
	return true;
}
