function checkCompanyData(){
	if(checkString(document.frm.company_name, "Companyname")&&
	checkString(document.frm.company_contact, "Your name")&&
	checkString(document.frm.company_vat_number, "Company VAT number")&&
	checkString(document.frm.address, "Address")&&
	checkString(document.frm.zipcode, "Zipcode")&&
	checkString(document.frm.city, "City") &&
	checkString(document.frm.country, "Country") &&
	checkString(document.frm.phone, "Phone")&&
	checkString(document.frm.fax, "Fax")&&
	checkEmail(document.frm.email, "e-Mail")){
	return true;
	}
	else{return false}
}

function passwordFormCheck(){
		 if(checkString(document.frm.organisatie, "Organisation") &&
		 checkString(document.frm.url, "Website") &&
		 checkString(document.frm.branche, "Branche") &&
		 checkBoxChecked(document.frm.aanhef, "Gender") &&
		 checkString(document.frm.functie, "Position") &&
		 checkString(document.frm.voornaam, "Firstname") &&
		 checkString(document.frm.achternaam, "Lastname") &&
 		 checkString(document.frm.adres, "Address") &&
		 checkString(document.frm.huisnummer, "Homenumber") &&
		 checkString(document.frm.postcode, "Zipcode") &&
		 checkString(document.frm.plaats, "City") &&
		 checkString(document.frm.land, "Country") &&
		 checkString(document.frm.telefoon, "Phone") &&
		 checkString(document.frm.fax, "Fax") &&
		 checkEmail(document.frm.email,"e-Mail")&&
		 checkString(document.frm.password, "Password")){
		return true;
		}
		return false;
}

function checkCompanyPostalData(){
	if(checkString(document.frm.delivery_address, "delivery address")&&
	checkString(document.frm.delivery_zipcode, "delivery zipcode")&&
	checkString(document.frm.delivery_area_code, "Area code")&&
	checkString(document.frm.delivery_city, "delivery city") &&
	checkString(document.frm.delivery_country, "delivery country")){
	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.selectedIndex 	= a.country.selectedIndex;
}

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 openCart(areaCode)
{
	window.open("/internet/shop/printCart.asp?areaCode="+areaCode,"cart","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;
   }
}

function openBigger(id)
{
	window.open("/internet/catalog/imageViewer.asp?viewer=db&id="+ id,"","width=100,height=100")
}





