function onPressPopup(iID, imageWidth, imageHeight) {
	newWindow = window.open("", "onPressPop","width="+imageWidth+",height="+imageHeight+",left=100,top=100");
	newWindow.document.open();
	newWindow.document.write('<html><title>THBB</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=/i/onPress/' + iID + '.png width='+imageWidth+' height='+imageHeight+' alt=THBB>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
} // bitir galleryPopup
function sendToFriend() {
	newWindow = window.open("sendToFriend.html", "sendToFriend","width=370,height=380,left=100,top=100");
	newWindow.focus();
} // bitir galleryPopup
function toggleIntranetFolder(i) {
	var d = document.getElementById("subfolder" + i);
	with(d.style) {
		if (d.innerHTML.length > 0) {
			if(visibility == "hidden") { visibility = "visible"; display = ""; }
			else { visibility = "hidden"; display = "none"; }
		} // <end> if
	} // <end> with()
} // <end> toggleIntranetFolder()
function disableCity(sb) {
	if (sb.selectedIndex != 1) {
		document.register.cityID.disabled = true;
		document.register.cityID.selectedIndex = 0;
		document.register.district.value = "";
		document.register.district.disabled = true; }
	else {
		document.register.cityID.disabled = false;
		document.register.district.disabled = false; }
}
function Popup(iID, imageWidth, imageHeight) {
	newWindow = window.open(iID, "onPressPop","width="+imageWidth+",height="+imageHeight+",left=100,top=100, scrollbars=yes");
	newWindow.focus();
} // bitir galleryPopup
function chngacco(f) {
	if(f == 1) { document.getElementById("accoName").disabled = false; }
	else { document.getElementById("accoName").disabled = true; document.getElementById("accoName").value = ''; }
}