function openImage(theURL,winName) { //v2.0
	  HTML = "<html><title>"+ winName +"</title><style>body{margin:0px 0px 0px 0px}</style><body bgcolor=#22356D><table border=0 cellpadding = 0 cellspacing=0 width=100% height=100%><tr><td valign=middle align=center><img src='"+ theURL +"' border=0 name=load_image onLoad='window.moveTo((screen.width-document.load_image.width)/2,100);window.resizeTo(document.load_image.width+40,document.load_image.height+40);'></td></tr></table></body></html>";
	  popupImage = window.open("","_blank","toolbar=no,scrollbars=yes,resizable=yes");
	  popupImage.document.open();
	  popupImage.document.write(HTML);
}

function nW(url,w,h) {
	if(typeof(lastwindow) != "undefined") {
		lastwindow.close(); 
	}
	LeftPosition = (screen.width-w) / 2;
	TopPosition = (screen.height-h) / 2;
	settings = "height="+h+",width="+w+",top="+TopPosition+",left="+LeftPosition;
	lastwindow = window.open(url,"my_popup_window",settings);
}	 

function divGoster(divName) {
	document.getElementById("tcontent1").style.display="none";
	document.getElementById("tcontent2").style.display="none";
	document.getElementById("tcontent3").style.display="none";
	document.getElementById("tcontent4").style.display="none";
	document.getElementById(divName).style.display="block";
}

function parentWindowDivHiddenTrue(url) {
	window.location = url;
	window.parent.document.getElementById("backDiv").style.display="block";
}

function parentWindowDivHiddenFalse() {
	history.go(-1);
	window.parent.document.getElementById("backDiv").style.display="none";
}

function parentWindowDivHiddenFalseNotGoBack() {
	window.parent.document.getElementById("backDiv").style.display="none";
}

function closeLocalize() {
	var url = window.opener.location.toString();
	var close_div = document.getElementById("close_div");
	if (url.indexOf("/en")!=-1) {
		close_div.innerHTML = "<a href=\"javascript:window.close()\" alt=\"Close\" title=\"Close\">Close</a>";
	}
}
