
var expDays = 1; // number of days the cookie should last

var path = "/";

var domain ;
var locapath = document.location.href

if (locapath.toString().search('/preview/')!= -1){
	var page  = "/preview";
}else{
	var page  = "";
}

/**********
if (locapath.toString().search('/textonly/')!= -1){
	 page += "/textonly/sc_chi/disclaimer/statment.html";
}else{
	 page += "/sc_chi/disclaimer/statment.html";
}
**********/


org_path_start = locapath.indexOf("://") + 3;
org_path_end = locapath.length;
domain = locapath.substring(org_path_start, org_path_end);
if (domain.toString().search('/')!= -1){
org_path_start = 0;
org_path_end = domain.indexOf("/");
domain = domain.substring(org_path_start, org_path_end);
}


function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
//var path = (argc > 3) ? argv[3] : null;  
//var domain = (argc > 4) ? argv[4] : null;  

var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
//((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
//((expires == null) ? "" : ("; expires=")) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('sccount')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('sccount')
SetCookie('sccount',newcount,exp)
return count
   }
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var sccount = GetCookie('sccount');
if (sccount == null) {

SetCookie('orgiurl',document.location.href, exp);

window.location.href=page;
}
else {
//count++;
//SetCookie('count', count, exp);
   }
}

//if ((locapath.toString().search('/sc_chi/')!= -1)||(locapath.toString().search('scindex.html')!= -1))   {
//	checkCount();
//}



//Finish Check SC statment




var dept = "/";
var domain = "";
var scserver = "http"+"://sc.info.gov.hk/gb/";
var locapath = document.location.href
//var locapath = "http://www.sar-expertcom.gov.hk/textonly/eindex.html";




var atlang,domname,sitepath,atgb,atindex,org_part;
	sc_path = "sc_chi/";
	sctxt_path = "textonly/sc_chi/";
	tc_path = "tc_chi/";
	tctxt_path = "textonly/tc_chi/";
	en_path = "english/";
	entxt_path = "textonly/english/";
	atgb = false;
	atindex = false;

if (locapath.toString().search('/gb/')!= -1){
	atgb = true;
	org_path_start = locapath.indexOf("/gb/") +4;
	org_path_end = locapath.length;
	sitepath = locapath.substring(org_path_start, org_path_end);
}else{
	atgb = false;
	sitepath = locapath.substring(7,locapath.length);
}

if (locapath.toString().search('/textonly/english/')!= -1){
	atlang = "entxt";
	org_part = entxt_path;
}else
if (locapath.toString().search('/textonly/tc_chi/')!= -1){
	atlang = "tctxt";
	org_part = tctxt_path;
}else
if (locapath.toString().search('/textonly/sc_chi/')!= -1){
	atlang = "sctxt";
	org_part = sctxt_path;
}else
if (locapath.toString().search('/english/')!= -1){
	atlang = "en";
	org_part = en_path;
}else
if (locapath.toString().search('/tc_chi/')!= -1){
	atlang = "tc";
	org_part = tc_path;
}else
if (locapath.toString().search('/sc_chi/')!= -1){
	atlang = "sc";
	org_part = sc_path;
}else
if (locapath.toString().search('/textonly/eindex.html')!= -1){
	atlang = "txteindex";
	org_part = "textonly/eindex.html";
	atindex = true;
}else
if (locapath.toString().search('eindex.html')!= -1){
	atlang = "eindex";
	org_part = "eindex.html";
	atindex = true;
}else
if (locapath.toString().search('/textonly/scindex.html')!= -1){
	atlang = "txtsindex";
	org_part = "textonly/scindex.html";
	atindex = true;
}else
if (locapath.toString().search('scindex.html')!= -1){
	atlang = "sindex";
	org_part = "scindex.html";
	atindex = true;
}else
if (locapath.toString().search('/textonly/cindex.html')!= -1){
	atlang = "txtcindex";
	org_part = "textonly/cindex.html";
	atindex = true;
}else
if (locapath.toString().search('cindex.html')!= -1){
	atlang = "cindex";
	org_part = "cindex.html";
	atindex = true;
}


/*
if (locapath.toString().search('/textonly/cindex.html')!= -1){
	atlang = "txtcindex";
	org_part = "textonly/cindex.html";
	atindex = true;
}else
if (locapath.toString().search('cindex.html')!= -1){
	atlang = "cindex";
	org_part = "cindex.html";
	atindex = true;
}else
if (locapath.toString().search('/textonly/scindex.html')!= -1){
	atlang = "txtsindex";
	org_part = "textonly/scindex.html";
	atindex = true;
}else
if (locapath.toString().search('scindex.html')!= -1){
	atlang = "sindex";
	org_part = "scindex.html";
	atindex = true;
}
*/


//domain = sitepath.substring(0, sitepath.indexOf("/"));
domain = "202.57.255.178";
subdir = "/preview";

function chglang(lang){

	switch(lang){
		case 'entxt': 
			des_part = entxt_path;
			des_ind_part = "textonly/eindex.html";
			base_path = "http://";
			break;
		case 'tctxt':
			des_part = tctxt_path;
			des_ind_part = "textonly/cindex.html";
			base_path = "http://";
			break;
		case 'sctxt':
			des_part = sctxt_path;
			des_ind_part = "textonly/scindex.html";
			//base_path = scserver;
			base_path = "http://";
			break;
		case 'en':
			des_part = en_path;
			des_ind_part = "eindex.html";
			base_path = "http://";
			break;
		case 'tc':
			des_part = tc_path;
			des_ind_part = "cindex.html";
			base_path = "http://";
			break;
		case 'sc':
			des_part = sc_path;
			des_ind_part = "scindex.html";
			//base_path = scserver;
			base_path = "http://";
			break;
	}

	if (atindex == true){
		tail = sitepath.replace(org_part, des_ind_part);
	}else{
		tail = sitepath.replace(org_part, des_part);
	}

//alert(base_path+tail)
	window.location =  base_path+tail;

}

/*************
function tellafriend( lang )
{
  if (lang == 'eng')
  {
     window.location = subdir + '/english/tell/tell.asp?base=http%3A//'+ domain + subdir + '/english/tell/&url=' + escape(window.location);
  }else if (lang == 'chi')
  {
     window.location = subdir + '/tc_chi/tell/tell.asp?base=http%3A//'+ domain + subdir + '/tc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'schi')
  {
     window.location = subdir + '/sc_chi/tell/tell.asp?base=http%3A//'+ domain + subdir + '/sc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'eng_txt')  
  {
     window.location = subdir + '/textonly/english/tell/tell.asp?base=http%3A//'+ domain + subdir + '/textonly/english/tell/&url=' + escape(window.location);
  }else if (lang == 'chi_txt')
  {
     window.location = subdir + '/textonly/tc_chi/tell/tell.asp?base=http%3A//'+ domain + subdir + '/textonly/tc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'schi_txt')
  {
     window.location = subdir + '/textonly/sc_chi/tell/tell.asp?base=http%3A//'+ domain + subdir + '/textonly/sc_chi/tell/&url=' + escape(window.location);
  }
  //window.location = 'tell/tell.html?url=' + escape(window.location);
}
*************/

function splitString (stringToSplit,separator) {
 var arrayOfStrings = stringToSplit.split(separator);
 return arrayOfStrings[1];
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function printMenu()
{
	var separator = '<tr><td background="/english/images/general/side_div.gif" width="100%"><img src="/english/images/general/spacer.gif" width="11" height="1" alt="image"></td></tr>';
	document.write('<table width="153" border="0" cellspacing="0" cellpadding="0" bgcolor="#C7D2FD">');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/eindex.html" class="sidelink">Home</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/about/about_vm/about_vm.html" class="sidelink">About Us</a></td></tr>');
	document.write(separator);
	genmenu('0');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/whatsnew/whatsnew.html" class="sidelink">What\'s New</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/psr/psr_current/psr_current.html" class="sidelink">PSR Newsletter</a></td></tr>');
	document.write(separator);
	genmenu('2');
	
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/reform/reform_over/reform_over.html" class="sidelink">Public Sector Reform</a></td></tr>');
	document.write(separator);
	genmenu('3');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/psi/psi_psi/psi_psi_over/psi_psi_over.html" class="sidelink">Private Sector Involvement</a></td></tr>');
	document.write(separator);
	genmenu('4');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/ccsp/ccsp_over/ccsp_over.html" class="sidelink">Citizen Centric Services Programme</a></td></tr>');
	document.write(separator);
	genmenu('5');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/mr/mr_resource/mr_resource.html" class="sidelink">Major <nobr>Re-engineering</nobr> / Transformation</a></td></tr>');
	document.write(separator);
	genmenu('6');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/or/or_over/or_over.html" class="sidelink">Business Review / Organisational <nobr>Re-structuring</nobr></a></td></tr>');
	document.write(separator);
	genmenu('7');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="http://www.1823.gov.hk" class="sidelink" target="_blank">1823 Call Centre</a></td></tr>');
	document.write(separator);
//	genmenu('8');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/youth/youth.html" class="sidelink">Youth.gov.hk</a></td></tr>');
	document.write(separator);
	genmenu('9');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/osc/osc.html" class="sidelink">One Stop Centre for Warehouse Construction Permits</a></td></tr>');
	document.write(separator);
//	genmenu('10');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/rmc/rmc_over/rmc_over.html" class="sidelink">Registration of Management Consultants</a></td></tr>');
	document.write(separator);
	genmenu('11');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/case/case.html" class="sidelink">List of Case Studies</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/tms/tender.html" class="sidelink">Tender/Market Sounding</a></td></tr>');
	document.write(separator);
	genmenu('13');

	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/grade/grade_mso/grade_mso_over/grade_mso_over.html" class="sidelink">Grade Management</a></td></tr>');
	document.write(separator);
	genmenu('14');

	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/cmps/cmps.html" class="sidelink">Course Materials of Past EU Seminars</a></td></tr>');
	document.write(separator);

	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/photo/photo.html" class="sidelink">Photo Gallery</a></td></tr>');
	document.write(separator);
	genmenu('16');


	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/publication/pub_bp/pub_bp.html" class="sidelink">Publications</a></td></tr>');
	document.write(separator);
	genmenu('17');


	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/links/links_gov/links_gov.html" class="sidelink">Links</a></td></tr>');
	document.write(separator);
	genmenu('18');

	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/contactus/contactus.html" class="sidelink">Contact Us</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" align="center" bgcolor="#EAEEF9"><br><a href="javascript:void(0);" onclick="window.open(\'/english/5day_details.html\',\'\',\'width=260,height=190\')"><img src="/english/images/front/5day_icon.jpg" alt="image" border="0"></a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" align="center" bgcolor="#EAEEF9"><br><img src="/english/images/front/caring_org.jpg" alt="image" border="0"></td></tr>');
	document.write("</table>");
}

function printIndexMenu()
{
	var separator = '<tr><td background="/english/images/general/side_div.gif" width="100%"><img src="/english/images/general/spacer.gif" width="11" height="1" alt="image"></td></tr>';

	document.write('<table width="153" border="0" cellspacing="0" cellpadding="0" bgcolor="#C7D2FD">');
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/eindex.html" class="sidelink">Home</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/about/about_vm/about_vm.html" class="sidelink">About Us</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/whatsnew/whatsnew.html" class="sidelink">What\'s New</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/psr/psr_current/psr_current.html" class="sidelink">PSR Newsletter</a></td></tr>');
	document.write(separator);

	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/reform/reform_over/reform_over.html" class="sidelink">Public Sector Reform</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/psi/psi_psi/psi_psi_over/psi_psi_over.html" class="sidelink">Private Sector Involvement</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/ccsp/ccsp_over/ccsp_over.html" class="sidelink">Citizen Centric Services Programme</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/mr/mr_resource/mr_resource.html" class="sidelink">Major <nobr>Re-engineering</nobr> / Transformation</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/or/or_over/or_over.html" class="sidelink">Business Review / Organisational <nobr>Re-structuring</nobr></a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="http://www.1823.gov.hk" class="sidelink" target="_blank">1823 Call Centre</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/youth/youth.html" class="sidelink">Youth.gov.hk</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/osc/osc.html" class="sidelink">One Stop Centre for Warehouse Construction Permits</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/rmc/rmc_over/rmc_over.html" class="sidelink">Registration of Management Consultants</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/case/case.html" class="sidelink">List of Case Studies</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/tms/tender.html" class="sidelink">Tender/Market Sounding</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/grade/grade_mso/grade_mso_over/grade_mso_over.html" class="sidelink">Grade Management</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/cmps/cmps.html" class="sidelink">Course Materials of Past EU Seminars</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/photo/photo.html" class="sidelink">Photo Gallery</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/publication/pub_bp/pub_bp.html" class="sidelink">Publications</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/links/links_gov/links_gov.html" class="sidelink">Links</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" onMouseOver="bgColor=\'#FAD559\'" onMouseOut="bgColor=\'#C7D2FD\'"><a href="/english/contactus/contactus.html" class="sidelink">Contact Us</a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" align="center" bgcolor="#EAEEF9"><br><a href="javascript:void(0);" onclick="window.open(\'/english/5day_details.html\',\'\',\'width=260,height=190\')"><img src="/english/images/front/5day_icon.jpg" alt="image" border="0"></a></td></tr>');
	document.write(separator);
	document.write('<tr><td width="100%" class="side" align="center" bgcolor="#EAEEF9"><br><img src="/english/images/front/caring_org.jpg" alt="image" border="0"></td></tr>');
	document.write("</table>");
}

function printTxtMenu(){
	document.write("<p>");
	document.write("[<a href=\"/textonly/eindex.html\">Home</a>] ");
	document.write("[<a href=\"/textonly/english/about/about_wel/about_wel.html\">About Us</a>] ");
	document.write("[<a href=\"/textonly/english/whatsnew/whatsnew.html\">What's New</a>] ");
	document.write("[<a href=\"/textonly/english/psr/psr_current/psr_current.html\">PSR Newsletter</a>] ");
	document.write("[<a href=\"/textonly/english/history/history_over/history_over.html\">History of Public Sector Reform</a>] ");
	document.write("[<a href=\"/textonly/english/psi/psi_psi/psi_psi_over/psi_psi_over.html\">Private Sector Involvement</a>] ");
	document.write("[<a href=\"/textonly/english/mr/mr_resource/mr_resource.html\">Major <nobr>Re-engineering</nobr> / Transformation</a>] ");
	document.write("[<a href=\"/textonly/english/or/or_over/or_over.html\">Organisational <nobr>Re-structuring</nobr></a>] ");
	document.write("[<a href=\"/textonly/english/icc/icc_over/icc_over.html\">1823 Call Centre</a>] ");
	document.write("[<a href=\"/textonly/english/rmc/rmc_over/rmc_over.html\">Registration of Management Consultants</a>] ");
	document.write("[<a href=\"/textonly/english/case/case.html\">List of Case Studies</a>] ");
	document.write("[<a href=\"/textonly/english/tms/tender.html\">Tender/Market Sounding</a>] ");
	document.write("[<a href=\"/textonly/english/photo/photo.html\">Photo Gallery</a>] ");
	document.write("[<a href=\"/textonly/english/publication/publication.html\">Publications</a>] ");
	document.write("[<a href=\"/textonly/english/links/links_gov/links_gov.html\">Links</a>] ");
	document.write("[<a href=\"/textonly/english/contactus/contactus.html\">Contact Us</a>] ");
	document.write("[<a href=\"javascript:void(0);\" onclick=\"window.open('/english/5day_details.html','','width=260,height=190')\">5 Day Week</a>] ");
	document.write("</p>");
}



//Header frame of the website
//GovHK
//Date : 12/2006
function printHeader(){
    
    
		var wLanguage, form_action,link_brankHK,link_govHK,alt_govHK,alt_EU,alt_brankHK,alt_Search,alt_SearchGraphic,alt_SiteMap,alt_ContactUs,alt_TChi,alt_sChi,alt_image;
		rootLoc = "/";
		wLanguage = "english";
		form_action = "http://search.gov.hk/search.html";
		link_brankHK = "http://www.brandhk.gov.hk/brandhk/eindex.htm";
		link_govHK = "http://www.gov.hk/en/residents/";
		alt_govHK = "GovHK";
		alt_EU = "Efficiency Unit\nThe Government of the Hong Kong Special Administrative Region";
		alt_brankHK = "Brand Hong Kong - Asia's world city";
		alt_TextOnly = "Text Only";
		alt_Search = "Search";
		alt_SearchGraphic = "Search Graphic";
		alt_SiteMap = "Site Map";
		alt_ContactUs = "Contact Us";
		alt_tChi ="Traditional Chinese";
		alt_sChi = "Simplified Chinese";
		alt_image = "image";

		tmpDir = "/2007";

        document.write("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\""+ rootLoc + wLanguage +"/images/clf/bkgdtexture.gif\">");
        document.write("<form name=\"searchform\" action=\""+ form_action +"\" method=\"get\" target=\"_blank\">");
        
        document.write('<input type="hidden" name="tpl_id" value="eu">');
        document.write('<input type="hidden" name="ui_lang" value="en">');
        document.write('<input type="hidden" name="ui_charset" value="big5">');
        document.write('<input type="hidden" name="gp0" value="eu_home">');
        document.write('<input type="hidden" name="gp1" value="eu_home">');
        document.write('<input type="hidden" name="web" value="this">');
        document.write("<!--<input name=\"mode\" type=\"hidden\" value=\"96\">-->");
        document.write("<!--<input name=\"gr_1\" type=\"hidden\" value=\"eu\">-->");

        //document.write("<input name=\"ui_lang\" type=\"hidden\" value=\"en\">");
        //document.write("<input name=\"ui_charset\" type=\"hidden\" value=\"utf-8\">");
        
        
        document.write("<tr valign=\"top\">");
        document.write("<td width=\"760\" > ");
       
        document.write("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
        document.write("<tr valign=\"top\" >");
        document.write("<td width=\"50%\" align=\"left\"><img src=\""+ rootLoc + wLanguage +"/images/clf/logo.gif\" alt=\""+ alt_EU +"\"");
        document.write(" width=\"420\" height=\"65\"></td>");        
        document.write("<td width=\"50%\" align=\"right\"><a href=\""+ link_brankHK +"\" target=\"_blank\"><img name=\"BrandHK\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/BrandHK.gif\" border=\"0\" alt=\""+ alt_brankHK +"\"></a></td>")
        document.write("</tr>");
        document.write("</table>");        
        document.write("</td>");
        document.write("</tr>");
        
        document.write("<tr valign=\"top\">");
        document.write("<td width=\"760\"> ");
       
        document.write("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");        
        document.write("<tr valign=\"bottom\">");

        document.write("<td width=\"538\"><a href=\""+ link_govHK +"\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar1','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar1_f2.gif',1)\" target=\"_blank\" ><img name=\"mainbar1\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar1.gif\" border=\"0\" alt=\""+ alt_govHK +"\"></a>");
	    //document.write("<a href=\"javascript:chglang('entxt')\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar2','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar2_f2.gif',1)\" ><img name=\"mainbar2\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar2.gif\" border=\"0\" alt=\""+ alt_TextOnly +"\"></a>");
        document.write("<a href=\"javascript:chglang('tc')\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar3','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar3_f2.gif',1)\" ><img name=\"mainbar3\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar3.gif\" border=\"0\" alt=\""+ alt_tChi +"\"></a>");
        document.write("<a href=\"javascript:chglang('sc')\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar4','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar4_f2.gif',1)\" ><img name=\"mainbar4\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar4.gif\" border=\"0\" alt=\""+ alt_sChi +"\"></a>");

        document.write("<img name=\"mainbar5\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar5.gif\" border=\"0\" alt=\""+ alt_image +"\">");
        document.write("</td>");
        
        
        document.write("<td align=\"right\" ><a href=\"javascript:document.searchform.submit();\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar6','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar6_f2.gif',1)\" ><img name=\"mainbar6\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar6.gif\" border=\"0\" alt=\""+ alt_Search +"\"></a>");
        document.write("</td>");
        
        
        document.write("<td valign=\"bottom\" align=\"right\">");
        document.write("<input class=\"search\" type=\"text\" name=\"query\" size=\"9\" style=\"width:92px\">");
        document.write("</td>");
        
        
        document.write("<td valign=\"bottom\" align=\"right\">");
        document.write("<a href=\"javascript:document.searchform.submit();\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('mainbar8','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar8_f2.gif',1)\"><img name=\"mainbar8\" border=\"0\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar8.gif\" alt=\""+ alt_SearchGraphic +"\"></a>");
        document.write("<a href=\""+ rootLoc + wLanguage +"/sitemap/sitemap.html\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar9','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar9_f2.gif',1)\" ><img name=\"mainbar9\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar9.gif\" border=\"0\" alt=\""+ alt_SiteMap +"\"></a>");
        document.write("<a href=\""+ rootLoc + wLanguage +"/contactus/contactus.html\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar10','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar10_f2.gif',1)\" ><img name=\"mainbar10\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar10.gif\" border=\"0\" alt=\""+ alt_ContactUs +"\"></a>");
        document.write("</td>");
        
        document.write("</tr>");
        document.write("</table>");        
        
        document.write("</td>");        
        document.write("</tr>");
        
        document.write("</form>");
        document.write("</table>");
}

//Header frame of the website(Text Verson)
//GovHK
//Date : 12/2006
function txt_printHeader(){
    var link_brankHK,link_govHK,alt_govHK,alt_brankHK;
    var verson_2007 = true;
//    var verson_2007 = false;
    
    if (!  verson_2007){		
		link_govHK = "http://www.info.gov.hk/index_e.htm";
		alt_govHK = "Government Information Centre";		
		link_brankHK = "http://www.brandhk.gov.hk/brandhk/eindex.htm";
		alt_brankHK = "Brand Hong Kong";
    }else{    	
		link_govHK = "http://www.gov.hk/en/residents/";
		alt_govHK = "GovHK香港政府一站通";		
		link_brankHK = "http://www.brandhk.gov.hk/brandhk/eindex.htm";
		alt_brankHK = "Brand Hong Kong - Asia's world city";
    }
    	
    document.write("<p>");
    document.write("[<a href=\""+ link_govHK +"\" target=\"_blank\">"+ alt_govHK +"</a>]");
    document.write("&nbsp;");    
    document.write("[<a href=\""+ link_brankHK +"\" target=\"_blank\">"+ alt_brankHK +"</a>]");
    document.write("</p>");
}


// lastModified Date
function LastModifiedDate(){
var LastModifiedDate=new Date(document.lastModified);
Y=LastModifiedDate.getYear();
if (Number(Y)<1000) Y=Y+1900; //for firefox
M=Number(LastModifiedDate.getMonth());
D=LastModifiedDate.getDate();
var array1 = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
LastModifiedDate = "Last revision date: "+D+" "+array1[M]+" "+Y;
return LastModifiedDate;
}
//----------End lastModified Date

document.write('<script language="javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=a012345"></script>');
var addthis_config =
{
	ui_language: 'en',
	data_use_flash: false
}
