function checkCompanyData(){
	if(checkString(document.frm.company_contact, "Naam")&&
	checkString(document.frm.address, "Adres")&&
	checkString(document.frm.zipcode, "Postcode")&&
	checkString(document.frm.city, "Woonplaats") &&
	checkString(document.frm.phone, "Telefoon")&&
	checkEmail(document.frm.email, "e-Mail")){
	return true;
	}
	else{return false}
}

function checkCompanyPostalData(){
	if(checkString(document.frm.delivery_address, "Straat en huisnummer bij van het afleveradres")&&
	checkString(document.frm.delivery_zipcode, "Postcode bij afleveradres")&&
	checkString(document.frm.delivery_city, "Woonplaats bij afleveradres")){
	return true;
	}
	else{return false}
}

function copyTodelivery()
{
	a =document.frm
	a.delivery_address.value 	= a.address.value;
	a.delivery_zipcode.value 	= a.zipcode.value;
	a.delivery_city.value 		= a.city.value;
	a.delivery_country.value	= a.country.value;
}

function checkBeforeSubmit()
{
 	a = document.nawForm.conditions
 	if(!a.checked){alert("U heeft nog niet aangegeven akkoord te gaan met de leveringsvoorwaarden.\n Wij kunnen uw bestelling dan niet in behandeling nemen.");}
 	else{document.nawForm.submit();}
}

function checkForms()
{
if(checkCompanyData() && checkCompanyPostalData()){document.frm.submit();}
}


function openOnlineOffer()
{
	window.open("/internet/shop/online_offer.asp","offer","top=10,left=10,width=750,height=450,scrollbars=yes")
}

function showThumb(thumbId)
{
	a = document.getElementById("thumb");
	if(document.all)
	{
		a.style.top	= mY;
		a.style.left = mX;
	}
	else
	{
		a.style.top = 10;
		a.style.left = 10;
	}
	a.style.display = "";
	a.innerHTML = "<img height=\"70\" src=\"/internet/catalog/pictures/"+ thumbId +"thumb.jpg\" >";

}

function hideThumb()
{
	a = document.getElementById("thumb");
	a.style.display = "none";
}

function mtrack() {
   if(document.all){
   mX	= event.x;
   mY	= event.y;
   //window.defaultStatus = mX + ' ' + mY;
   }
}



