/*
 * function: openImage
 * author: jonas.svensson@elema.siemens.se
 * date: 2003-04
 * description:
 * modified:
*/

function openImage(lImageID, sImagePath, iWidth, iHeight) {
	
	var iWidth = parseInt(iWidth) + 10;
	var iHeight = parseInt(iHeight) + 80;
	var sURL = 'imagePage.aspx?imageID=' + lImageID + '&imagePath=' + sImagePath;
	var sName = 'Image';
	var sProperties = 'toolbar=no, location=no, directories=no, menubar=no, scrollbars=auto, resizable=yes, width=' + iWidth + ', height=' + iHeight;

	window.open(sURL, sName, sProperties);
}

function CheckCountryAndLanguage(theform, drop1, drop2) {
	if(drop1.value != '0' && drop2.value != '0'){
		theform.submit();
		return true;
	}
	else return false;
}

function CheckCountryAndLanguage(theform) {
	if(theform.selCountry.value == '224'){
		if(theform.selLanguage != undefined) theform.selLanguage.value = '1';
	}
	if( (theform.selCountry == undefined || theform.selCountry.value != '0') && (theform.selLanguage == undefined || theform.selLanguage.value != '0') ){
		theform.submit();
		return true;
	}
	else return false;
}
