
function PopupImageCustomSize(strURL,sWidth,sHeight) {
	window.open(strURL,"","top=100,left=100,height=" + sHeight + ",width=" + sWidth + ",toolbar=no,menubar=no,location=no");
}

function PopupImage(strURL) {
//	alert(strURL);
	window.open(strURL,"","height=220,width=320,toolbar=no,menubar=no,location=no");
}

function SubmitForm(oForm,sLanguage) {
//	alert(oForm);
	var pass=true;
	for (i=0;i<oForm.length;i++) {
		var tempobj=oForm.elements[i]
		if (tempobj.name.substring(0,8)=="required") {
			if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)) {
//				alert(tempobj.name);
				pass=false;
				break;
			}
		}
	}
	if (!pass){
		switch (sLanguage) {
			case "en" :
				alert("One or more of the required form-elements are not completed.\nPlease verify them, then submit again!");
				break;
			case "fr" :
				alert("Un ou plusieurs des forme-éléments exigés n'est pas accompli. Veuillez les vérifier, soumettent alors encore.");
				break;
			case "de" :
				alert("Man oder mehr der angeforderten Form-Elemente werden nicht durchgeführt. Überprüfen Sie sie bitte, einreichen dann wieder!");
				break;
		}
		tempobj.focus();
		return false;
	} else {
		oForm.submit();
		return true;
	}
}
