function openWin(pagename,w,h){
	sw=screen.availWidth;
	sh=screen.availHeight;
	tp=(sh-h)/2;
	lf=(sw-w)/2;
	microsite_window=window.open(pagename,'microsite_window','toolbar=no,location=no,borders=no,directories=no,status=no,menubar=no,scrollbars=yes,top='+tp+',left='+lf+',resizable=no,width='+w+',height='+h)
}
////////////////////////////
var Infotxt="";
function test(obj,msg){
	var regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;
	if (regex.test(obj.value)){
		return true;
	}else{
		alert(Infotxt+msg);
		obj.focus();
		return false;
	}
}
function checkint(obj,msg){
	if(isNaN(obj.value)){
		alert(Infotxt+msg);
		obj.focus();
		return false;
	}
}
function confirmPassword(obj,obj1,msg){
	if(obj.value!=obj1.value){
		alert(Infotxt+msg);
		obj1.focus();
		return false;
	}
}
function checkempty(obj,msg){
	if(obj.value==""){
		alert(Infotxt+msg);
		obj.focus();
		return false;
	}
}
function checkzero(obj,msg){
	if(obj.value==0){
		alert(Infotxt+msg);
		obj.focus();
		return false;
	}
}
////////////////////////////