
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>");
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");
}