// JavaScript Document

	    function clearTextBoxOnCondition(textBox,conditionText){
        if(textBox.value == conditionText)
          textBox.value="";
    }    
	
// JavaScript Document
  function openzip(wlist) {
     window.open('cityList.asp?xlist='+wlist ,'windowname','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=0,width=420,height=550,top=0,left=0')
     }

//

		function catdept(wval) {
    document.getElementById("iframe1").src="Colors.asp?Colors="+ wval
	document.form1.sizes.value=document.form1.selsize.value
	document.form1.colors.value=""
}	

  //function openzip(wlist) {
    // window.open('cityList.asp?xlist='+wlist ,'windowname','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=0,width=420,height=550,top=0,left=0')
    // }


  ///function openzip(wlist) {
   //  window.open('cityList.asp?xlist='+wlist ,'windowname','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=0,width=420,height=550,top=0,left=0')
 //    }


<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

  ///function openzip(wlist) {
     //window.open('cityList.asp?xlist='+wlist ,'windowname','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=0,width=420,height=550,top=0,left=0')
 //    }



 // function openzip(wlist) {
  //   window.open('cityList.asp?xlist='+wlist ,'windowname','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=0,width=420,height=550,top=0,left=0')
  //   }


  //function openzip(wlist) {
 //    window.open('cityList.asp?xlist='+wlist ,'windowname','toolbar=0,menubar=0,/scrollbars=1,status=0,resizable=0,width=420,height=550,top=0,left=0')
  //   }


<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->



//  function openzip(wlist) {
  //   window.open('cityList.asp?xlist='+wlist ,'windowname','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=0,width=420,height=550,top=0,left=0')
  //   }


	function getIframe()
	{
	parent.form1.colors.value=document.form2.elements[0].value;
	}
	

	    function clearTextBoxOnCondition(textBox,conditionText){
        if(textBox.value == conditionText)
          textBox.value="";
    } 
	

	function submitit() {
	sizes=document.form1.sizes.value;
	colors=document.form1.colors.value;
	if (sizes=="" || colors=="")
	{
	emsg.innerHTML="Please select Size n Color.<br>";
	emsg.style.color="red";
	return false;
	}
	else
	{
	document.form1.submit();
	return true;}
}	


function copyinto() {
	shipcost=document.Cart.SHIP_COST(Cart.SHIP_COST.selectedIndex).value
	
	if (shipcost=="" ){
					ship.innerHTML="Please select a shipping method."
					ship.style.color="red";
					return false;
					}
					else{
						ship.innerHTML=""
						document.Cart.submit()
						return true;	 
						}
	  
}


<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->

function check()
 {
	if (document.register.FirstName.value== "") {alert(" Please fill Your First Name"); document.register.FirstName.focus(); return(false); }
	if (document.register.LastName.value== "") {alert(" Please fill Your Last Name"); document.register.LastName.focus(); return(false); }
	
	if (document.register.EmailAddress.value== "") {alert(" Please fill Your Email Address"); document.register.EmailAddress.focus(); return(false); }
		
		if (document.register.EmailAddress.value.indexOf("@")<2) { alert("Please enter a valid Email Address"); document.register.EmailAddress.focus(); return false; }
		
	if ((document.register.EmailAddress.value.indexOf(".")<5)&&(document.register.EmailAddress.value.indexOf(".")<5)) { alert("Please enter a valid Email address"); document.register.EmailAddress.focus(); return false; }
	
	if (document.register.CEmail.value== "") {alert(" Please fill Confirm Email Address "); document.register.CEmail.focus(); return(false); }
	if (document.register.EmailAddress.value!=document.register.CEmail.value) {alert(" Your Confirm Email Address is not match with actual Email Address "); document.register.CEmail.focus(); return(false); }

	if (document.register.ZipCode.value== "") {alert(" Please fill Zip Code"); document.register.ZipCode.focus(); return(false); }} 