
function QueryString(key)
{
	var value = null;
	for (var i=0;i<QueryString.keys.length;i++)
		if (QueryString.keys[i]==key)
		{
			value = QueryString.values[i];
			break;
		}
	return value;

}

QueryString.keys = new Array();
QueryString.values = new Array();

function QueryString_Parse()
{
	var query = window.location.search.substring(1);
   
	var pairs = query.split(escape("&") );
	
	for (var i=0;i<pairs.length;i++)
	{
		var pos = pairs[i].indexOf('=');
		if (pos >= 0)
		{
			var argname = pairs[i].substring(0,pos);
			var value = pairs[i].substring(pos+1);
			QueryString.keys[QueryString.keys.length] = argname;
			QueryString.values[QueryString.values.length] = value;		
		}
	}

}


function show(){
document.write("<html lang=\"zh\">");
document.write("<head>");
document.write("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
document.write("<title>Disclaimer / 连结外网站提示</title>");
document.write("<link href='../style/style.css' rel='stylesheet' type='text/css'>");
document.write("</head>");
document.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' bgcolor='#FFFFEF'>");
document.write("<table width='360'><tr><td>");
document.write("<form width='100%' method='post' action='#'><b>Disclaimer</b><br><br>");
//document.write("You are now leaving the Marine Department home site on the web. Any links from the home site to other web sites are included for information and convenience only. We expressly state that we have not approved or endorsed the information provided by others or provided on or accessible from any linked sites. We are not responsible for the contents available on or the set-up of those linked sites. Proceed at your own risk.<br><br>");
document.write("<font size='2' face='Arial, Helvetica, sans-serif'>You are now leaving the Marine Department home site on the web. Any links from the home site to other web sites are included for information and convenience only. We expressly state that we have not approved or endorsed the information provided by others or provided on or accessible from any linked sites. We are not responsible for the contents available on or the set-up of those linked sites. Proceed at your own risk.</font><br><br>");
document.write("<b>连结外网站提示</b><br><br>");
document.write("<font size='2' face='新細明體, Arial, Helvetica, sans-serif'>阁下现正离开网上海事处本站。纳入从本站连结其他网站的设计，纯为提供讯息与方便。至于其他人所提供的资料，或者任何连结网站所提供的资料，或者从任何连结网站可接达的资料，我们并未有加以核准或认可，特此明文宣述。对于那些连结网站所有内容或其设置，我们概不负责。提示完毕，连结者后果自负。</font><br><br>");
//document.write("阁下现正离开网上海事处本站。纳入从本站连结其他网站的设计，纯为提供讯息与方便。至于其他人所提供的资料，或者任何连结网站所提供的资料，或者从任何连结网站可接达的资料，我们并未有加以核准或认可，特此明文宣述。对于那些连结网站所有内容或其设置，我们概不负责。提示完毕，连结者后果自负。<br><br>");
document.write("<div align='center'>");
document.write('<input value="Accept | 接受" type="button" class="buttoninput" size="12" name="accept" onClick="javascript:window.close();window.open(\'' + strHref + '\', target=\'_blank\')\">');
document.write("&nbsp;<input value='Decline | 拒绝' type='button' class='buttoninput' size='12' name='decline' onClick='javascript:window.close()'>");
document.write("&nbsp;<input value='Close | 关闭' type='button' class='buttoninput' size='12' name='close' onClick='javascript:window.close()'>");
document.write("</div>");
document.write("</form>");
document.write("</td></tr></table>");
document.write("</body>");
document.write("</html>");
}
QueryString_Parse();
var strHref = unescape(QueryString("strhref") );

function winopen(){
	
}
function winOpen1(strHref){
  var vurl = location.href.split("/");
  var strvurl = vurl[2];
  if (strvurl == "sc.info.gov.hk") {
    strHref = "http://sc.info.gov.hk/gb/" + strHref;
  }else{
    strHref = strHref;
  }
  window.open(strHref,"","width=380,height=410, resizable=no, status=1");
}
function winPopup(strHref){
  window.open("/hk/others/p_contactus.html","","width=220,height=220, resizable=no, status=1");
}
