// JavaScript Document
function openLoginTC() {
	var x = screen.width;
    var y = screen.height;
	var winProperty = "width=" + x + ",height=" + y + ",top=0,left=0,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,location=no,directories=no";
    window.open('https://www.e-start.gov.hk/YERCWEB/Security/Login.aspx?lang=TC','memberLogin',winProperty);
};
function openPreRegTC() {
	var x = screen.width;
    var y = screen.height;
	var winProperty = "width=" + x + ",height=" + y + ",top=0,left=0,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,location=no,directories=no";
    window.open('https://www.e-start.gov.hk/Member/MemberPrereg.aspx?lang=C','preReg',winProperty);
};
function openPanelTC() {
	var x = 460;
	var y = 150;
	var a = (screen.width/2)-(x/2);
	var b = (screen.height/2)-(y/2);
	var winProperty = "width=" + x + ",height=" + y + ",top=" + b + ",left=" + a + ",scrollbars=no,resizable=no,menubar=no,toolbar=no,location=no,directories=no";
	window.open('http://www.e-start.gov.hk/gfx/tc/panel.html','panel',winProperty);
};
function openAssessTC() {
	var x = 720;
	var y = 636;
	var a = (screen.width/2)-(x/2);
	var b = (screen.height/2)-(y/2);
	var winProperty = "width=" + x + ",height=" + y + ",top=" + b + ",left=" + a + ",scrollbars=no,resizable=no,menubar=no,toolbar=no,location=no,directories=no";
	window.open('http://www.e-start.gov.hk/gfx/tc/online-assessment/game.html','assessment',winProperty);
};
function openEMag() {
	var x = 1024;
	var y = 768;
	var a = (screen.width/2)-(x/2);
	var b = (screen.height/2)-(y/2);
	var winProperty = "width=" + x + ",height=" + y + ",top=" + b + ",left=" + a + ",scrollbars=no,resizable=no,menubar=no,toolbar=no,location=no,directories=no";
	window.open('http://www.e-start.hk/gfx/tc/media/72_varieties/index.html','eBook',winProperty);
};
function openTrSche() {
	var x = 1024;
	var y = 768;
	var a = (screen.width/2)-(x/2);
	var b = (screen.height/2)-(y/2);
	var winProperty = "width=" + x + ",height=" + y + ",top=" + b + ",left=" + a + ",scrollbars=no,resizable=no,menubar=no,toolbar=no,location=no,directories=no";
	window.open('http://www.e-start.hk/gfx/tc/media/tr-sche_2009_Q2/LP/index.html','eMagtrsche',winProperty);
};