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;
	}
}
////////////////////////////
function chkNl(){
	if(test(document.frmnl.email,"Information: Enter Valid Email Address")==false) return false;
}
function chkForm(){
	if(checkempty(document.form1.pdesigner,"Information: Enter Designer")==false) return false;
	if(checkempty(document.form1.pcolor,"Information: Enter Color")==false) return false;
	if(checkempty(document.form1.psize,"Information: Enter Size")==false) return false;
	if(checkempty(document.form1.price,"Information: Enter Price")==false) return false;
	if(checkempty(document.form1.dtneeded,"Information: Enter Date Needed")==false) return false;
	if(test(document.form1.email,"Information: Enter Valid Email Address")==false) return false;
	if(checkempty(document.form1.cname,"Information: Enter Your Name")==false) return false;
	if(checkempty(document.form1.tel,"Information: Enter Your Phone Number")==false) return false;
}