
			function reloadproduct(){
				var pid=document.f1.product.options[document.f1.product.selectedIndex].value;
				document.location.href="?pid="+pid;
			}
			function reloadptype(){
				var pid=document.f1.product.options[document.f1.product.selectedIndex].value;
				var ptypeid=document.f1.ptype.options[document.f1.ptype.selectedIndex].value;
				document.location.href="?pid="+pid+"&ptypeid="+ptypeid;
			}
			function reloadpsize(){
				var pid=document.f1.product.options[document.f1.product.selectedIndex].value;
				var ptypeid=document.f1.ptype.options[document.f1.ptype.selectedIndex].value;
				var psizeid=document.f1.psize.options[document.f1.psize.selectedIndex].value;
				document.location.href="?pid="+pid+"&ptypeid="+ptypeid+"&psizeid="+psizeid;
			}
			function registeruser(){
				if (document.f1.optuser[0].checked == true){
					document.f1.txtremail.disabled = false;
					document.f1.txtrpass.disabled = false;
					document.f1.txtnam.disabled = true;
					document.f1.txtuemail.disabled = true;
					document.f1.txtupass.disabled = true;
					document.f1.txtucpass.disabled = true;
					document.f1.txtph.disabled = true;
				}
				if (document.f1.optuser[1].checked == true){
					document.f1.txtremail.disabled = true;
					document.f1.txtrpass.disabled = true;
					document.f1.txtnam.disabled = false;
					document.f1.txtuemail.disabled = false;
					document.f1.txtupass.disabled = false;
					document.f1.txtucpass.disabled = false;
					document.f1.txtph.disabled = false;
				}
			}
			function checkEmailAddress(field) {
				var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
				if (goodEmail){
					good = true;
				}else{
					alert('Please enter a valid email address.');
					field.focus();
					field.select();
					good = false;
				}
				return good;
			}
			function submitform(){
				if (document.f1.optuser[0].checked == true){
					if (document.f1.txtremail.value == "") {
						alert("enter email address");
						document.f1.txtremail.focus();
						return false;
					}else if (document.f1.txtremail.value != ""){
						var a = checkEmailAddress(document.f1.txtremail);
						if(a==false)
							return false;
					}
					if (document.f1.txtrpass.value == "") {
						alert("enter email password");
						document.f1.txtrpass.focus();
						return false;
					}
				}else if (document.f1.optuser[1].checked == true){
					if (document.f1.txtuemail.value == "") {
						alert("enter email address");
						document.f1.txtuemail.focus();
						return false;
					}else if(document.f1.txtuemail.value != ""){
						var a = checkEmailAddress(document.f1.txtuemail);
						if(a==false)
							return false;
					}
					if (document.f1.txtupass.value == "") {
						alert("enter email password");
						document.f1.txtupass.focus();
						return false;
					}else if (document.f1.txtupass.value != document.f1.txtucpass.value) {
						alert("password and confirm password does not match");
						document.f1.txtupass.focus();
						return false;
					}
				}else{
					return true;
				}
			}
			var popupcheck;

			function popflogin(){
				window.open("forgotlogin.asp","flogin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=No,width=300,height=180,top=5,left=20" );
			}

			function popitup(){
				newwindow=window.open("chat/chat_talkuser.asp",'name','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height=450,width=400,top=5,left=0');
				return popupcheck = newwindow == null;
			}
