function openwindow(PageURL,WinName) {
	//var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=730,height=380";
	var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=416,height=400";
	var barTitle = "Leaving_Site_" + WinName;
	WinName = window.open("",barTitle,winOptions);
	writeToPopuponline(WinName, PageURL);
}

function writeToPopuponline(WinName, PageURL) {
	var doc = WinName.document;
	var POP_HTML;
	POP_HTML = "<HTML><HEAD><TITLE>Leaving Site</TITLE><link rel=\"stylesheet\" type=\"text/css\" href=\"/common/css/styles.css\"></head>\n";
	POP_HTML += "<body bgcolor=\"red\" LEFTMARGIN=\"0\" TOPMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">\n";
	POP_HTML += "<table width=416 cellpadding=5 cellspacing=0 border=0><tr>";
	POP_HTML +="<TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>";
	POP_HTML +=" <td height=50 width=600><span class=head2>&#39321;&#28207;&#23500;&#34349;&#20811;&#26519;&#37159;&#26222;&#38931;&#25237;&#36039;</span><br><img src=/images/nada.gif width=1 height=7><br>\n";
	POP_HTML += "<span class=head3>&#31532;&#19977;&#32773;&#32178;&#38913;&#26781;&#27454;</span></td>";
	POP_HTML +="<TD width=5><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr>\n";
	POP_HTML += "<tr><TD bgcolor=\"#E8F1FF\"><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>"
	POP_HTML +="<td height=150 class=verdana9_e bgcolor=\"#E8F1FF\" valign=top width=748>\n";
	POP_HTML += "<img src=/images/nada.gif width=1 height=15><br><span class=head4>&#24744;&#23559;&#38626;&#38283;&#39321;&#28207;&#23500;&#34349;&#20811;&#26519;&#37159;&#26222;&#38931;&#25237;&#36039;&#32178;&#38913;&#12290;</span>\n";
	POP_HTML += "<p align=left><SPAN class=insttext>&#25353;&#30906;&#35469;&#37749;&#24744;&#23559;&#36914;&#20837;&#21478;&#19968;&#29544;&#31435;&#32178;&#38913;&#12290;&#39321;&#28207;&#23500;&#34349;&#20811;&#26519;&#37159;&#26222;&#38931;&#25237;&#36039;&#25110;&#20854;&#38468;&#23660;&#27231;&#27083;&#20006;&#27794;&#26377;&#23565;&#27492;&#29544;&#31435;&#32178;&#38913;&#36914;&#34892;&#27298;&#26597;&#12289;&#20445;&#35657;&#25110;&#25209;&#26680;&#12290;&#35531;&#27880;&#24847;&#65292;&#27492;&#29544;&#31435;&#32178;&#38913;&#20043;&#26781;&#27454;&#12289;&#31169;&#38577;&#26781;&#20363;&#21450;&#20445;&#38556;&#26781;&#20363;&#26371;&#33287;&#39321;&#28207;&#23500;&#34349;&#20811;&#26519;&#37159;&#26222;&#38931;&#25237;&#36039;&#32178;&#38913;&#19981;&#21516;&#12290;&#39321;&#28207;&#23500;&#34349;&#20811;&#26519;&#37159;&#26222;&#38931;&#25237;&#36039;&#20134;&#19981;&#26371;&#23565;&#20219;&#20309;&#38307;&#19979;&#22240;&#20351;&#29992;&#27492;&#29544;&#31435;&#32178;&#38913;&#30452;&#25509;&#25110;&#38291;&#25509;&#20043;&#25216;&#34899;&#25110;&#31995;&#32113;&#21839;&#38988;&#12289;&#32080;&#26524;&#25110;&#30772;&#22750;&#36000;&#36012;&#12290;\n<p>&nbsp;</td>";
	POP_HTML +="<TD width=1 bgcolor=\"#E8F1FF\"><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr>\n";
	POP_HTML += "<tr >";
	POP_HTML += "<tr><TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>";
	 POP_HTML +="<td height=150 valign=top width=748></SPAN><form>\n";
	//doc.write("<input type=button value='OK' name='ok' onclick=\"window.opener." + FrameName + ".location.href='" + PageURL + "'\;window.close();//\">\n");
	if (PageURL == "stay") {
		POP_HTML += "<input class=verdana11b_e type=button value='Close Window' name='cancel' onclick=\"window.close();\">\n";
	} else {
		POP_HTML += "<input class='bodycon' width=25 height=20 type=button value='&#30906;&#35469;' name='ok' onclick=\"openWindowonline();\">\n";
		POP_HTML += "<input  class='bodycon' width=25 height=20 type=button value='&#21462;&#28040;' name='cancel' onclick=\"window.close();\">\n";
	}
	POP_HTML += "</form></td>";
	POP_HTML +="<TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr></table></BODY></HTML>\n";
	POP_HTML +="<script language=javascript>function openWindowonline(){window.open(\""+PageURL+"\", \"infowin3\",\"menubar=1,toolbar=1,location=1,resizable=1,scrollbars=1,status=1,width=750,height=400,left=0,top=0\"); window.close();}</script>"
	
	
	
	POP_HTML +="<script language='JavaScript' src='/hkchinesesite/s_code_hkch_leave-site.js'></script>"
	doc.write(POP_HTML);
	doc.close();
	WinName.focus();
}


function openwindow_intl(PageURL,WinName) {
	//var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=730,height=380";
	var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=416,height=400";
	var barTitle = "Leaving_Site_" + WinName;
	WinName = window.open("",barTitle,winOptions);
	writeToPopuponline_intl(WinName, PageURL);
}

function writeToPopuponline_intl(WinName, PageURL) {
	var doc = WinName.document;
	var POP_HTML;
	POP_HTML = "<HTML><HEAD><TITLE>Leaving Site</TITLE><link rel=\"stylesheet\" type=\"text/css\" href=\"/common/css/styles.css\"></head>\n";
	POP_HTML += "<body bgcolor=\"red\" LEFTMARGIN=\"0\" TOPMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">\n";
	POP_HTML += "<table width=416 cellpadding=5 cellspacing=0 border=0><tr>";
	POP_HTML +="<TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>";
	POP_HTML +=" <td height=50 width=600><span class=head2>&#39321;&#28207;&#23500;&#34349;&#20811;&#26519;&#37159;&#26222;&#38931;&#25237;&#36039;</span><br><img src=/images/nada.gif width=1 height=7><br>\n";
	POP_HTML += "<span class=head3>&#20854;&#20182;&#22283;&#23478;&#32178;&#38913;&#26781;&#27454;</span></td>";
	POP_HTML +="<TD width=5><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr>\n";
	POP_HTML += "<tr><TD bgcolor=\"#E8F1FF\"><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>"
	POP_HTML +="<td height=150 class=verdana9_e bgcolor=\"#E8F1FF\" valign=top width=748>\n";
	POP_HTML += "<img src=/images/nada.gif width=1 height=15><br><span class=head4>&#24744;&#23559;&#38626;&#38283;&#39321;&#28207;&#23500;&#34349;&#20811;&#26519;&#37159;&#26222;&#38931;&#25237;&#36039;&#32178;&#38913;&#12290;</span>\n";
	POP_HTML += "<p align=left><SPAN class=insttext>&#25353;&#30906;&#35469;&#37749;&#24744;&#23559;&#36914;&#20837;&#21478;&#19968;&#22283;&#23478;&#32178;&#38913;&#12290;&#35531;&#27880;&#24847;&#65292;&#27492;&#22283;&#23478;&#32178;&#38913;&#25110;&#21253;&#21547;&#27809;&#26377;&#22312;&#39321;&#28207;&#35387;&#20874;&#20379;&#20844;&#30526;&#35469;&#36092;&#20043;&#22522;&#37329;&#20043;&#36039;&#35338;&#65292;&#36889;&#20123;&#22522;&#37329;&#20006;&#19981;&#26371;&#22312;&#39321;&#28207;&#30332;&#21806;&#12290;&#27492;&#22283;&#23478;&#32178;&#38913;&#21253;&#21547;&#20043;&#36039;&#35338;&#19981;&#25033;&#34987;&#35222;&#28858;&#39321;&#28207;&#32178;&#38913;&#20043;&#19968;&#37096;&#20998;&#12290; \n<p>&nbsp;</td>";
	POP_HTML +="<TD width=1 bgcolor=\"#E8F1FF\"><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr>\n";
	POP_HTML += "<tr >";
	POP_HTML += "<tr><TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>";
	 POP_HTML +="<td height=150 valign=top width=748></SPAN><form>\n";
	//doc.write("<input type=button value='OK' name='ok' onclick=\"window.opener." + FrameName + ".location.href='" + PageURL + "'\;window.close();//\">\n");
	if (PageURL == "stay") {
		POP_HTML += "<input class=verdana11b_e type=button value='Close Window' name='cancel' onclick=\"window.close();\">\n";
	} else {
		POP_HTML += "<input class='bodycon' width=25 height=20 type=button value='&#30906;&#35469;' name='ok' onclick=\"openWindowonline();\">\n";
		POP_HTML += "<input  class='bodycon' width=25 height=20 type=button value='&#21462;&#28040;' name='cancel' onclick=\"window.close();\">\n";
	}
	POP_HTML += "</form></td>";
	POP_HTML +="<TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr></table></BODY></HTML>\n";
	POP_HTML +="<script language=javascript>function openWindowonline(){window.open(\""+PageURL+"\", \"infowin3\",\"menubar=1,toolbar=1,location=1,resizable=1,scrollbars=1,status=1,width=750,height=400,left=0,top=0\"); window.close();}</script>"
	
	
	
	POP_HTML +="<script language='JavaScript' src='/hkchinesesite/s_code_hkch_leave-site.js'></script>"
	doc.write(POP_HTML);
	doc.close();
	WinName.focus();
}
