//function _open_window_510_565(new_url)
//	{//show_pic full size
//	 new_window = window.open(new_url,'window_name','toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width=510,height=565,left=200,top=100');
//	}
	
function _open_window_550_340(new_url)
	{//Tip a friend
	 new_window = window.open(new_url,'window_name','toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width=550,height=340,left=200,top=100');
	}
function _open_window_550_350(new_url)
	{//Newsletter
	 new_window = window.open(new_url,'window_name','toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width=550,height=350,left=200,top=100');
	}

function _validate_order_email()
	{
	 //gets the emails
	 var email = document.order_basket_email.order_email.value
	 //test the emails
	 var email_ok = _validate_email(email)
	 //set the xxx_email_ok to true or false
	 document.order_basket_email.email_ok.value = email_ok
	}
function _validate_address_email()
	{
	 //gets the emails
	 var email = document.order_basket.old_email.value
	 //test the emails
	 var email_ok = _validate_email(email)
	 //set the xxx_email_ok to true or false
	 document.order_basket.email_ok.value = email_ok
	}
function _validate_address1_email()
	{
	 //gets the emails
	 var email = document.order_basket1.new_email.value
	 //test the emails
	 var email_ok = _validate_email(email)
	 //set the xxx_email_ok to true or false
	 document.order_basket1.email_ok.value = email_ok
	}
function _validate_address2_email()
	{
	 //gets the emails
	 var email = document.confirm_address.conf_email.value
	 //test the emails
	 var email_ok = _validate_email(email)
	 //set the xxx_email_ok to true or false
	 document.confirm_address.email_ok.value = email_ok
	}
function _validate_forgot_email()
	{
	 //gets the emails
	 var email = document.forgot_email.email.value
	 //test the emails
	 var email_ok = _validate_email(email)
	 //set the xxx_email_ok to true or false
	 document.forgot_email.email_ok.value = email_ok
	}
function _validate_tipafriend()
	{
	 //gets the emails
	 var from_email = document.tipafriend.from_email.value
	 var to_email   = document.tipafriend.to_email.value
	 //test the emails
	 var from_email_ok = _validate_email(from_email)
	 var to_email_ok   = _validate_email(to_email)
	 //set the xxx_email_ok to true or false
	 document.tipafriend.from_email_ok.value = from_email_ok
	 document.tipafriend.to_email_ok.value = to_email_ok
	}

function _validate_newsletter()
	{
	 //gets the email
	 var to_email = document.newsletter.to_email.value
	 //test the email
	 var to_email_ok = _validate_email(to_email)
	 //set the xxx_email_ok to true or false
	 document.newsletter.to_email_ok.value = to_email_ok
	}

function _validate_supplyer()
	{
	 //gets the email
	 var to_email = document.supplyer_info_email.to_email.value
	 //test the email
	 var to_email_ok = _validate_email(to_email)
	 //set the xxx_email_ok to true or false
	 document.supplyer_info_email.to_email_ok.value = to_email_ok
	}

function _validate_email(email)
	{
	 var testresults
	 var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	 if (filter.test(email))
	 	{
		testresults=true
		}
	 else
	 	{
		 testresults=false
		}
	 return (testresults)
	}

function overviewOver(subdir,pic)
	{
	//Change pictur based on from and menu number
	document.OverView.src = subdir+'/'+pic+'.jpg';
	}

function preloadImages()
	{
	if (document.images)
		{
		for (var i = 0;i < preloadImages.arguments.length;i++)
			{
			(new Image()).src = preloadImages.arguments[i];
			}
		}
	}