

		function addreference (refs,type)
	    {
			addreference = window.open("addreference.php?Refs=" + refs + "&" + type + "=1" ,"addreference","width=700,height=250,left=100,top=100,status=no,resizable=yes,scrollbars=yes");
			addreference.focus();
	    }
	    
		function newreference ()
	    {
			reference = window.open("reference.php?RefNew=1&popup=1","reference","width=600,height=480,left=100,top=100,status=no,resizable=yes,scrollbars=yes");
			reference.focus();
	    }
	    
		function newpicture ()
	    {
			newpicture = window.open("image.php","newpicture","width=600,height=480,left=100,top=100,status=no,resizable=yes,scrollbars=yes");
			newpicture.focus();
	    }
	    
		function newmp3ref(file)
	    {
			mp3ref = window.open("../sites/mp3ref.php?Ref="+file,"mp3preview","width=300,height=30,left=100,top=100,status=no,resizable=yes,scrollbars=no");
			mp3ref.focus();
	    }
	    
		function showpic (url,xsize,ysize)
	    {
			detail = window.open("picture.php?RefID="+url,"detail","width="+xsize+",height="+ysize+",left=100,top=100,status=no,resizable=no,scrollbars=no");
			detail.focus();
	    }
	    
		function specialsearch(type,ws)
	    {
			special = window.open("productspecial.php?wssearch="+ws+"&SpecialSearch=" + type ,"special","width=500,height=550,left=50,top=50,status=yes,resizable=no,scrollbars=yes");
			special.focus();
	    }

		function viewproduct(url)
	    {
			detail = window.open(url,"detail","width=350,height=380,left=100,top=100,status=yes,resizable=yes,scrollbars=yes");
			window.detail.resizeTo(350,380);
			detail.focus();
	    }
	    
		function viewfrombasket(url)
	    {
			window.location.href = url;
			window.resizeTo(350,380);
			detail.focus();
	    }
	    
		function popuptobasket(url)
	    {	
			detail = window.open(url,"detail","width=500,height=500,left=100,top=100,status=yes,resizable=yes,scrollbars=yes");
			window.detail.resizeTo(500,500);
			detail.focus();
	    }

		function addtobasket(addRec)
		{
		window.resizeTo(500,500);
		window.location.href = "basket.php?addQuan=1&addProd=" + addRec;
		}
		
		function orderform(url)
		{
		opener.location.href = url;
		self.close();
		}


		function chkFormular()
		{
		 if(document.OrderForm.firstname.value == "" || document.OrderForm.firstname.value == "?")  {
		   alert(missmsg);
		   document.OrderForm.firstname.value = "?";
		   document.OrderForm.firstname.select();
		   return false;
		  }
		 if(document.OrderForm.lastname.value == "" || document.OrderForm.lastname.value == "?")  {
		   alert(missmsg);
		   document.OrderForm.lastname.value = "?";
		   document.OrderForm.lastname.select();
		   return false;
		  }
		 if(document.OrderForm.street.value == "" || document.OrderForm.street.value == "?")  {
		   alert(missmsg);
		   document.OrderForm.street.value = "?";
		   document.OrderForm.street.select();
		   return false;
		  }
		 if(document.OrderForm.zipcode.value == "" || document.OrderForm.zipcode.value == "?")  {
		   alert(missmsg);
		   document.OrderForm.zipcode.value = "?";
		   document.OrderForm.zipcode.select();
		   return false;
		  }
		 if(document.OrderForm.city.value == "" || document.OrderForm.city.value == "?")  {
		   alert(missmsg);
		   document.OrderForm.city.value = "?";
		   document.OrderForm.city.select();
		   return false;
		  }
		 if(document.OrderForm.email.value == "" || document.OrderForm.email.value == "?")  {
		   alert(missmsg);
		   document.OrderForm.email.value = "?";
		   document.OrderForm.email.select();
		   return false;
		  }
		 if(document.OrderForm.country.value == "" || document.OrderForm.country.value == "?")  {
		   alert(missmsg);
		   document.OrderForm.country.value = "?";
		   document.OrderForm.country.select();
		   return false;
		  }
		}

		

	
	
