		   function toggleLayer( whichLayer )
			{
			  var elem, vis;
			  if( document.getElementById ) // this is the way the standards work
				elem = document.getElementById( whichLayer );
			  else if( document.all ) // this is the way old msie versions work
				  elem = document.all[whichLayer];
			  else if( document.layers ) // this is the way nn4 works
				elem = document.layers[whichLayer];
			  vis = elem.style;
			  // if the style.display value is blank we try to figure it out here
			  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
				vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
			  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
		  }
		  function validemail(d){
			
			return true
           }

		   function eCifra(c) {
			  var test = "" + c ;   
			  if ( test=="0" ||  test=="1" ||  test=="2" ||  test=="3" ||  test=="4" ||  test=="5" ||  test=="6" ||  test=="7" ||  test=="8" ||  test=="9") return true;
			  else return false; 
		   }
	
		   function eNumar(s) {
			  var test = "" +s;
			  if(test.length!=9) return false;
			  for (var k=0;k<test.length;k++) {
				 var c=test.substring(k,k+1);
				 if (!eCifra(c)) return false;
			  }
			  return true;
		   }

		   function val1() {
				if (!document.f.Country.value) {
				  window.alert("Shipping to?");
				  document.f.Country.select();
				  document.f.Country.focus(); return false; }
				  
				if (!document.f.Date.value) {
				  window.alert("When?");
				  document.f.Date.select();
				  document.f.Date.focus(); return false; }

				if (!document.f.Method.value) {
				  window.alert("By?");
				  document.f.Method.select();
				  document.f.Method.focus(); return false; }			
				  			  
				return true;
		  }
		  
		   function val3() {		
				  			  
				return true;
		  }		  

      function validEmail(d){
        if (d.value == "") {
          alert("Please enter your E-Mail address.")
          d.focus()
          return false
        }
        var EmailRegExp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
        if (!EmailRegExp.test(d.value)) {
          window.alert("Your e-mail address is wrong. Please re-enter correct  email address.");
          d.focus();
          return false;
        }
        return true;
      }
      function v() {
        if (!document.f.name.value) {
          window.alert("Name?");
          document.f.name.select();
          document.f.name.focus(); return false; } 
        if (document.f.email.value == "") {
          window.alert("E-mail?");
          document.f.email.focus(); return false; }	
        if (!validEmail(document.f.email)) 
          return false; 
        if (!document.f.message.value) {
          window.alert("Message?");
          document.f.message.select();
          document.f.message.focus(); return false; }	  
        return true;
      }
		  
		  function next1(){
		  	if(val1()) {	switchid('tab2');	 }	  
		  }
		  
		  function next2(){
		  	switchid('tab3');	 	  
		  }		
		  
		  function next3(){
		  	if(val3()) {	switchid('tab4');	 }	 	  
		  }			    
		  
		  function prev(){		  
		  	switchid('tab1');		  
		  }		  
		  		  

		  		  
