var title = new Array()
title[1] = "Home";
title[2] = "What's New";
title[3] = "About Us";
title[4] = "Policy Responsibilities";
title[14] = "Policy Initiatives";
title[5] = "Publications and Press Releases";
title[6] = "Access to Information";
title[7] = "Public Forms";
title[8] = "Other Information";
title[9] = "Related Departments / Organizations";
title[10] = "Contact Us";
title[11] = "Important Notice";
title[12] = "Site Map";
title[99] = "Welcome Message";
title[15] = "Hong Kong Volunteers at Beijing Olympics";


var subTitle = new Array()

subTitle[1] = new Array()
subTitle[1][1] = "Welcome Message ";
subTitle[1][2] = "Biography";

subTitle[3] = new Array()
subTitle[3][1] = "Form the Desk of Secretary for Home Affairs";
subTitle[3][2] = "Speeches by PSHA";
subTitle[3][3] = "Vision & Mission";
subTitle[3][4] = "Organization Chart";

subTitle[4] = new Array()
subTitle[4][1] = "Social Harmony and Civic Education";
subTitle[4][2] = "District, Community and Public Relations";
subTitle[4][3] = "Recreation, Sport and Entertainment Licensing";
subTitle[4][4] = "Culture";
subTitle[4][5] = "Policy Responsibilities";
subTitle[4][6] = "Policy Responsibilities";
subTitle[4][7] = "Policy Responsibilities";

subTitle[5] = new Array()
subTitle[5][1] = "Press Releases & Speeches";
subTitle[5][2] = "Publications";
subTitle[5][3] = "Reports";
subTitle[5][4] = "Consultation / Policy Paper";

subTitle[6] = new Array()
subTitle[6][1] = "Code on Access to Information";
subTitle[6][2] = "Procedures for Access to Information";	
subTitle[6][3] = "List of Available Information";
subTitle[6][4] = "List of Records by Category";	

subTitle[8] = new Array()
subTitle[8][6] = "2010-11 Budget";
subTitle[8][1] = "Privacy Policy Statement";
subTitle[8][2] = "Environmental Report";
subTitle[8][3] = "Report on Enhanced Productivity Programme Savings";
subTitle[8][4] = "Eletronic Transactions Ordinance";
subTitle[8][5] = "Tender Notices";
subTitle[8][7] = "Recruitment Notice";

subTitle[9] = new Array()
subTitle[9][1] = "Related Departments and Other Organizations";
subTitle[9][2] = "Advisory and Statutory Bodies under the Purview of the Secretary for Home Affairs";


subTitle[99] = new Array()
subTitle[99][1] = "Welcome Message";
subTitle[99][2] = "Biography ";


//switch language version
function langSwitch(lang) {
	var goPath;
	var pagePath=document.location.pathname;

	if(location.href.toString().search('westcom') != -1)
		var translationServer='ht'+'tp://common.westcomzivo.com/gb/';
	else
		var translationServer='http://sc.info.gov.hk/gb/';

	if (lang=='en') { //change to English version
		goPath='/en'+pagePath.substring(3,pagePath.length);
	}
	if (lang=='tc') { //change to traditional chinese version
		goPath='/tc'+pagePath.substring(3,pagePath.length);
	}
	if (lang=='sc') { //change to simplified chinese version
		goPath='/chs'+pagePath.substring(3,pagePath.length);
		
	}
	document.location=goPath;
}

function getTitle() {
	var scriptBuffer='';
	scriptBuffer+='<title>';
	scriptBuffer+='Home Affairs Bureau - '+title[selectedSection];
	if(selectedSubSection!=0&&selectedSubSection!='') {
		scriptBuffer+= ' - ' + subTitle[selectedSection][selectedSubSection]
	}
	scriptBuffer+='</title>';
	return scriptBuffer;	
}

function getTopic() {
	var retStr='';
	retStr = title[selectedSection];
	if(selectedSubSection!=0&&selectedSubSection!='') {
		retStr+= ' - ' + subTitle[selectedSection][selectedSubSection];
	}
	return retStr;
}

function getHeader(){
	linkHome='/index.htm';
	linkTC='javascript:langSwitch(\'tc\')';
	linkSC='javascript:langSwitch(\'sc\')';
	linkSiteMap='/en/t_sitemap.htm';
	linkContactUs='/en/contact_us/t_suggestion.htm';
	linkSearch='javascript:document.search.submit()';
//	linkSearch='javascript:PopWin(\'/popup2.html\', 0, 0, 300, 110)';

	var scriptBuffer='';
	scriptBuffer+='<table width="760" border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td colspan="2"><font size="4"><b>Home Affairs Bureau</b></font><br><br>';
	scriptBuffer+='</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='<tr valign="middle">';
	scriptBuffer+='<td><table border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td nowrap>[ <a href="'+linkHome+'">HAB Home</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+linkTC+'">繁 體 版</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+linkSC+'">簡 體 版</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+linkSiteMap+'">Site Map</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap> [ <a href="'+linkContactUs+'">Contact Us</a> ] </td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</table>';
	scriptBuffer+='</td>';
	scriptBuffer+='<td align="right"><table border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<form name="search" action="http://search.gov.hk/search.html" method="get">';
//	scriptBuffer+='<form name="search" action="javascript:PopWin(\'/popup2.html\', 0, 0, 300, 110)">';
	scriptBuffer+='<input type="hidden" name="tpl_id" value="hab">';
	scriptBuffer+='<input type="hidden" name="ui_lang" value="en">';
	scriptBuffer+='<input type="hidden" name="ui_charset" value="utf-8">';
	scriptBuffer+='<input type="hidden" name="gp0" value="hab_home">';
	scriptBuffer+='<input type="hidden" name="gp1" value="hab_home">';
	scriptBuffer+='<input type="hidden" name="web" value="this">';
	scriptBuffer+='<input type="hidden" name="txtonly" value="1">';
	//form hidden field add here
	scriptBuffer+='<tr>';
	scriptBuffer+='<td valign="middle" nowrap>[&nbsp;</td>';
	scriptBuffer+='<td valign="middle" nowrap><input type="text" name="query">';
	scriptBuffer+='</td>';
	scriptBuffer+='<td valign="middle" nowrap>&nbsp;<a href="'+linkSearch+'">Search</a>&nbsp;]</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</form>';
	scriptBuffer+='</table>';
	scriptBuffer+='</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td colspan="2"><hr></td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</table>';
	
	return scriptBuffer;
}

function getNavMenu(){
	var sectionlink = new Array();
	sectionlink[1]='/en/home/t_index.htm';
	sectionlink[2]='/en/whats_new/t_index.htm';
	sectionlink[3]='/en/about_us/t_about.htm';
	sectionlink[4]='/en/policy_responsibilities/t_policy.htm';
	sectionlink[14] = "/en/policy_initiatives/t_policy_initiatives.htm";
	sectionlink[5]='/en/publications_and_press_releases/t_pubpress.htm';
	sectionlink[6]='/en/access_to_information/t_access_to_information.htm';
	sectionlink[7]='/en/public_forms/t_forms.htm';
	sectionlink[8]='/en/other_information/t_other.htm';
	sectionlink[9]='/en/related_departments_organizations/t_index.htm';
	sectionlink[10]='/en/contact_us/t_suggestion.htm';

	var subSectionlink =new Array();
	subSectionlink [3] = new Array()
	subSectionlink [3][1] = "/en/about_us/t_shadesk.htm";
	subSectionlink [3][2] = "/en/about_us/t_pshaspeech.htm";
	subSectionlink [3][3] = "/en/about_us/t_vision.htm";
	subSectionlink [3][4] = "/en/about_us/t_haborg.htm";
	
	subSectionlink [4] = new Array()
	
	subSectionlink [4][1] = "/en/policy_responsibilities/t_policy1.htm";
	subSectionlink [4][2] = "/en/policy_responsibilities/t_policy2.htm";
	subSectionlink [4][3] = "/en/policy_responsibilities/t_policy3.htm";
	subSectionlink [4][4] = "/en/policy_responsibilities/t_policy4.htm";
	subSectionlink [4][5] = "/en/policy_responsibilities/t_policy.htm";
	subSectionlink [4][6] = "/en/policy_responsibilities/t_policy.htm";
	subSectionlink [4][7] = "/en/policy_responsibilities/t_policy.htm";


	subSectionlink [5] = new Array()
	subSectionlink [5][1] = "/en/publications_and_press_releases/t_index.htm";
	subSectionlink [5][2] = "/en/publications_and_press_releases/t_publications.htm";
	subSectionlink [5][3] = "/en/publications_and_press_releases/t_reports.htm";
	subSectionlink [5][4] = "/en/publications_and_press_releases/t_consultation.htm";
	
	subSectionlink [6] = new Array()
	subSectionlink [6][1] = "/en/access_to_information/t_rule.htm";
	subSectionlink [6][2] = "/en/access_to_information/t_code.htm";	
	subSectionlink [6][3] = "/en/access_to_information/list_of_available_information/t_listpub.htm";
	subSectionlink [6][4] = "/en/access_to_information/list_of_records_by_category/t_listrec.htm";	
	
	subSectionlink [8] = new Array()
	subSectionlink [8][1] = "/en/other_information/t_privacy.htm";
	subSectionlink [8][2] = "/en/other_information/t_er02.htm";
	subSectionlink [8][3] = "/en/other_information/t_epp.htm";
	subSectionlink [8][4] = "/en/other_information/t_eto.htm";
	subSectionlink [8][5] = "/en/other_information/t_tender.htm";
	subSectionlink [8][7] = "/en/other_information/t_recruitment.htm";

	subSectionlink [9] = new Array()
	subSectionlink [9][1] = "/en/related_departments_organizations/t_related.htm";
	subSectionlink [9][2] = "/en/related_departments_organizations/t_asb.htm";

	subSectionlink [99] = new Array()
	subSectionlink [99][1] = "/en/home/t_index.htm";
	subSectionlink [99][2] = "/en/home/t_bio.htm";


	//generate the topic image to the buffer variable
	var scriptBuffer='';
	scriptBuffer+='<table width="760" border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td colspan="2"><br>';
	scriptBuffer+='<br>';
	scriptBuffer+='<hr></td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td>[ <a href="#top">Top</a> ]</td>';
	if(backLink!='') scriptBuffer+='<td align="right">[ <a href="'+backLink+'">Back</a> ]</td>';
	else scriptBuffer+='<td align="right">&nbsp;</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td colspan="2"><hr></td>';
	scriptBuffer+='</tr>';
	if(selectedSubSection!=0&&selectedSubSection!='') {
		scriptBuffer+='<tr>';
		scriptBuffer+='<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">';
		switch(selectedSection) {
			case 3:
				scriptBuffer+='<tr>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][1]+'">'+subTitle[selectedSection][1]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][2]+'">'+subTitle[selectedSection][2]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][3]+'">'+subTitle[selectedSection][3]+'</a> ]</td>';
				scriptBuffer+='</tr>';
				scriptBuffer+='<tr>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][4]+'">'+subTitle[selectedSection][4]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='</tr>';
				break;
			case 4:
				scriptBuffer+='<tr>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][4]+'">'+subTitle[selectedSection][4]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][2]+'">'+subTitle[selectedSection][2]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][5]+'">'+subTitle[selectedSection][5]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][6]+'">'+subTitle[selectedSection][6]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][7]+'">'+subTitle[selectedSection][7]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][3]+'">'+subTitle[selectedSection][3]+'</a> ]</td>';				
				scriptBuffer+='</tr>';
				break;
			case 5:
				scriptBuffer+='<tr>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][1]+'">'+subTitle[selectedSection][1]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][2]+'">'+subTitle[selectedSection][2]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][3]+'">'+subTitle[selectedSection][3]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][4]+'">'+subTitle[selectedSection][4]+'</a> ]</td>';
				scriptBuffer+='</tr>';
				break;
			case 6:
				scriptBuffer+='<tr>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][1]+'">'+subTitle[selectedSection][1]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][2]+'">'+subTitle[selectedSection][2]+'</a> ]</td>';
				scriptBuffer+='</tr>';
				break;
			case 8:
				scriptBuffer+='<tr>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][1]+'">'+subTitle[selectedSection][1]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][2]+'">'+subTitle[selectedSection][2]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][3]+'">'+subTitle[selectedSection][3]+'</a> ]</td>';
				scriptBuffer+='</tr>';
				scriptBuffer+='<tr>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][4]+'">'+subTitle[selectedSection][4]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][5]+'">'+subTitle[selectedSection][5]+'</a> ]</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][7]+'">'+subTitle[selectedSection][7]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='</tr>';
				break;
			case 9:
				scriptBuffer+='<tr>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][1]+'">'+subTitle[selectedSection][1]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][2]+'">'+subTitle[selectedSection][2]+'</a> ]</td>';
				scriptBuffer+='</tr>';
				break;
			case 99:
				scriptBuffer+='<tr>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][1]+'">'+subTitle[selectedSection][1]+'</a> ]</td>';
				scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
				scriptBuffer+='<td nowrap>[ <a href="'+subSectionlink[selectedSection][2]+'">'+subTitle[selectedSection][2]+'</a> ]</td>';
				scriptBuffer+='</tr>';
	            break;
			
			default:
				scriptBuffer+='<td><h3><font color="red">Error Occured</font></h3></td>';
		}
		scriptBuffer+='</table></td>';
		scriptBuffer+='</tr>';
		scriptBuffer+='<tr>';
		scriptBuffer+='<td colspan="2"><hr></td>';
		scriptBuffer+='</tr>';
	}
	scriptBuffer+='<tr>';
	scriptBuffer+='<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[1]+'">'+title[1]+'</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[2]+'">'+title[2]+'</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[3]+'">'+title[3]+'</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[4]+'">'+title[4]+'</a> ]</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[5]+'">'+title[5]+'</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[6]+'">'+title[6]+'</a> ] </td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[7]+'">'+title[7]+'</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[8]+'">'+title[8]+'</a> ]</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[9]+'">'+title[9]+'</a> ]</td>';
	scriptBuffer+='<td width="10" nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>[ <a href="'+sectionlink[10]+'">'+title[10]+'</a> ]</td>';
	scriptBuffer+='<td nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>&nbsp;</td>';
	scriptBuffer+='<td nowrap>&nbsp;</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</table></td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td colspan="2"><hr></td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</table>';
	
	return scriptBuffer;
}

function getFooter() {
	var copyYear='2008';
	var noticesLink='/en/t_notice.htm';
	var PrivacyLink='/en/other_information/t_privacy.htm';
	
	if (revisionDate==''||revisionDate=='MM/DD/YYYY') revisionDate='8/24/2009';
	var monthArray=new Array();
	monthArray[0]='January';
	monthArray[1]='February';
	monthArray[2]='March';
	monthArray[3]='April';
	monthArray[4]='May';
	monthArray[5]='June';
	monthArray[6]='July';
	monthArray[7]='August';
	monthArray[8]='September';
	monthArray[9]='October';
	monthArray[10]='November';
	monthArray[11]='December';
	var reDate=new Date(Date.parse(revisionDate))
	var showDate=reDate.getDate()+' '+monthArray[reDate.getMonth()]+' '+reDate.getFullYear();

	//generate the topic image to the buffer variable
	var scriptBuffer='';
	scriptBuffer+='<table width="760" border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td>Copyright 2008 | <a href="'+noticesLink+'">Important notices</a> | <a href="'+PrivacyLink+'">Privacy Policy</A><br>';
	scriptBuffer+='</td>';
	scriptBuffer+='<td align="right">Last revision date: '+showDate+'</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</table>';
	
	return scriptBuffer;
}
function PopWin(url, x, y, w, h){
    eval("popup0 = window.open(url,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,pageXOffset=300,pageYOffset=500,top=" + y + ",left=" + x +",width=" + w + ",height=" + h + "')");
        if ( popup0.focus != null){
        popup0.focus();
    }
   // return true;
}

function externalLink(url)
{eval("nw = window.open(url, 'external','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,pageXOffset=0,pageYOffset=0,top=0,left=0,width=400,height=600')");
	if ( nw.focus != null)
	{nw.focus();}
}

function documentPopUp(url)
{
//	eval("nw = window.open(url, 'document','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,pageXOffset=0,pageYOffset=0,top=0,left=0,width=400,height=600')");
//	if ( nw.focus != null)
//	{nw.focus();}
	
	var nw = window.open(url, 'document','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,pageXOffset=0,pageYOffset=0,top=0,left=0,width=400,height=600');
	nw.focus();
}
