function openDetailViewer(imgId)
{
	var imgwin = window.open("/internet/viewer/detailViewer.asp?image_id=" + imgId,"viewer","top=10,left=10,width=850,height=700")
	imgwin.focus();
}

//CHECKS UK

function checkFirstStep(){
 		 if(checkString(document.frm.fullname,"Name") &&
 		 checkBoxChecked(document.frm.gender,"Gender")&&
 		 checkString(document.frm.address,"Address") &&
		 checkString(document.frm.zipcode,"Zipcode") &&
		 checkString(document.frm.city,"City") &&
		 checkString(document.frm.country,"Country") &&
		 checkString(document.frm.phone_private, "Phone") &&
		 checkEmail(document.frm.email,"e-Mail")){return true}
		else{return false}
}

function checkSecondStep(){
 		 if(checkString(document.frm.location_title, "Name") &&
 		 checkString(document.frm.location_description,"Description")&&
 		 checkString(document.frm.location_address,"Address") &&
		 checkString(document.frm.location_city,"City") &&
		 checkString(document.frm.location_country, "Country")){return true}
		else{return false}
}

function checkThirdStep(){
 		 if(checkString(document.frm.title_image, "Image")&&
 		 checkExtension(document.frm.location_image.value,"File extension",".jpg")){return true}
		else{return false}
}

// EINDE CHECKS UK

// CHECKS NL

function checkFirstStepNL(){
 		 if(checkString(document.frm.fullname,"Naam") &&
 		 checkBoxChecked(document.frm.gender,"Aanhef")&&
 		 checkString(document.frm.address,"Adres") &&
		 checkString(document.frm.zipcode,"Postcode") &&
		 checkString(document.frm.city,"Stad") &&
		 checkString(document.frm.country,"Land") &&
		 checkString(document.frm.phone_private, "Telefoon") &&
		 checkEmail(document.frm.email,"e-Mail")){return true}
		else{return false}
}

function checkSecondStepNL(){
 		 if(checkString(document.frm.location_title, "Naam") &&
 		 checkString(document.frm.location_description,"Omschrijving")&&
 		 checkString(document.frm.location_address,"Adres") &&
		 checkString(document.frm.location_city,"Plaats") &&
		 checkString(document.frm.location_country, "Land")){return true}
		else{return false}
}

function checkThirdStepNL(){
 		 if(checkString(document.frm.title_image, "Afbeelding")&&
 		 checkExtension(document.frm.location_image.value,"Type bestand",".jpg")){return true}
		else{return false}
}

// EINDE CHECKS NL

function returnExtension(sValue)
{
	sExt	= "";
	if (sValue.length > 0)
	{
		lastDot = sValue.lastIndexOf(".")
		sExt	= sValue.substr(lastDot,sValue.length-lastDot);
	}
	return sExt.toLowerCase()
}

function isJPG(sValue)
{
	switch(sValue)
	{
		case ".jpg":
			return true;
			break;
	}
}

function checkExtension(sValue,s,sExt)
{
	if(returnExtension(sValue) == sExt){return true;}
	else{alert(mPrefix2 + s + mSuffix2);return false;}
}








