function opwin4(url,h,w,wname)
{
theHeight = h; 
XPosition = screen.availWidth/2 - w/2; 
YPosition = screen.availHeight/2 - theHeight/2; 
window.open(url, wname, "toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=top,status=no,width="+w+",height="+theHeight+",ScreenX=0,ScreenY=0,Top="+YPosition+",Left="+XPosition); 
}
function emtf(){
	window.open('http://db2.jobstreet.com/referral/refer.asp?t=1&link=' + location.href, '_mail', config='height=600,width=600,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');
}

function opwin(url,h,w)
{
	XPos = screen.availWidth/2 - w/2;
	YPos = (screen.availHeight/2 - h/2) - 50; 
	var opwin = window.open(url, "newwindow", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,location=top,status=no,width="+w+",height="+h+",ScreenX=0,ScreenY=0,Top="+YPos+",Left="+XPos);
	opwin.focus();
}

function ow(url,lk)
{
	h = 600; 
	w = 750;
	XPos = screen.availWidth/2 - w/2; 
	YPos = (screen.availHeight/2 - h/2) - 85; 
	var ow = window.open(url, "newwindow", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,location=top,status=no,width="+w+",height="+h+",ScreenX=0,ScreenY=0,Top="+YPos+",Left="+XPos); 
	if (!(navigator.appName.indexOf("Netscape")!= -1 && parseInt(navigator.appVersion) == 4)) {lk.style.color = '#800080';}
		ow.focus();
}

function opwin1(url,h,w)
{
	theHeight = h; 
	XPosition = screen.availWidth/2 - w/2; 
	YPosition = screen.availHeight/2 - theHeight/2; 
	window.open(url, "newwindow", "toolbar=no,menubar=no,scrollbars=no,resizable=no,location=top,status=no,width="+w+",height="+theHeight+",ScreenX=0,ScreenY=0,Top="+YPosition+",Left="+XPosition);
}

function opwin2(url,h,w)
{
	theHeight = h; 
	XPosition = screen.availWidth/2 - w/2; 
	YPosition = screen.availHeight/2 - theHeight/2; 
	window.open(url, "newwindow", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,location=top,status=no,width="+w+",height="+theHeight+",ScreenX=0,ScreenY=0,Top="+YPosition+",Left="+XPosition);
}

function opwin3(url,h,w)
{
	theHeight = h; 
	XPosition = screen.availWidth/2 - w/2; 
	YPosition = screen.availHeight/2 - theHeight/2; 
	window.open(url, "newwindow", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,location=yes,status=no,width="+w+",height="+theHeight+",ScreenX=0,ScreenY=0,Top="+YPosition+",Left="+XPosition); 
}

function popup(c,url,e) {
	var r = null;
	if(getCookie(c) == null) {
		setCookie(c, "true", e);
		r = window.open('', 'special','width=320,height=320,resizable=0');
		if (r != null) {
			if (r.opener == null) {
				r.opener = self;
			}
			r.location.href = url;
		}
	}
}

function popup2(c,url,e,wn,h,w) {
	var r = null;
	if(getCookie(c) == null) {
		setCookie(c, "true", e);
		r = window.open('', wn,'width='+w+',height='+h+',resizable=0');
		if (r != null) {
			if (r.opener == null) {
				r.opener = self;
			}
			r.location.href = url;
		}
	}
}

function popup3(url,h,w)
{
	var x= screen.availWidth/2 - w/2; 
	var y= screen.availHeight/2 - h/2; 
	window.open(url, "newwindow", "toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=top,status=no,width="+w+",height="+h+",ScreenX=0,ScreenY=0,Top="+y+",Left="+x); 
}

function getCookie(name) { 
	var re = new RegExp(name + "=([^;]+)");
	var value = re.exec(document.cookie);
	return (value != null) ? unescape(value[1]) : null;
}

function setCookie(name, value, e) { 
	// e = in minutes
	var today = new Date();
	var expiry = new Date(today.getTime() + e * 60 * 1000); // plus 1 hour
	document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString();
}

function fdbk(site) {
	var s;
	if ((site==null) || (site=="")) {
		var h=location.href; 
		if ((h.indexOf("my.jobstreet.com") > 0) || (h.indexOf("www.jobstreet.com.my") > 0)) {s="my"}
		else if (h.indexOf("ph.jobstreet.com") > 0) {s="ph"} 
		else if (h.indexOf("sg.jobstreet.com") > 0) {s="sg"} 
		else if (h.indexOf("id.jobstreet.com") > 0) {s="id"} 
		else if (h.indexOf("bd.jobstreet.com") > 0) {s="bd"} 
		else if (h.indexOf("th.jobstreet.com") > 0) {s="th"} 
		else if (h.indexOf("vn.jobstreet.com") > 0) {s="vn"} 
		else if (h.indexOf("jp.jobstreet.com") > 0) {s="jp"} 
		else if (h.indexOf("th.jobstreet.com") > 0) {s="th"} 
		else if ((h.indexOf("in.jobstreet.com") > 0) || (h.indexOf("www.jobstreet.co.in") > 0)) {s="in"} 
		else {s="sg"}
	}
	else {
		s=site;
	}
	popup3('http://myjobstreet.jobstreet.com/help/feedback.asp?site='+s,520,650);
}

/**************************************/
// Description: Expandable ad setup script 
// Version: 1.0
// Last update: Oct 10, 2008
// Sample usage:
//	<script type="text/javascript">
//		jobstreet_setup_expleaderboard("MyLeaderboard.swf", 728, 90, 728, 180);
//	</script>
/**************************************/

// The id/name for flash banner
leaderboard_id = "homepage_leaderboard";
// Setup expandable leaderboard
function jobstreet_setup_expleaderboard(file, width, height, expwidth, expheight) {

	if(!expwidth) {
		expwidth = width;
	}
	if(!expheight) {
		expheight = height;
	}
	jobstreet_writeFlash(leaderboard_id, file, expwidth, expheight, "transparent", "");
	jobstreet_shrink_leaderboard();
} 
// Call this from flash banner to expand your ad
function jobstreet_expand_leaderboard() {
	jobstreet_getFlash(leaderboard_id).height = 120;
}
// Call this from flash banner to shrink your ad
function jobstreet_shrink_leaderboard() {
	jobstreet_getFlash(leaderboard_id).height = 60;
}
// Function to get flash id/name
function jobstreet_getFlash(id) {
	if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[id];
	}else {
		return document[id];
	}
}
// Function to write the flash
function jobstreet_writeFlash(id, file, width, height, wmode, params) {

	var flashTag = '';
	flashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	flashTag += 'id="' + id + '" ';
	flashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#" ';
	flashTag += 'width="' + width + '" ';
	flashTag += 'height="' + height + '">';
	flashTag += '<param name="movie" value="' + file + '"/>';
	flashTag += '<param name="wmode" value="' + wmode + '"/>';
	flashTag += '<param name="quality" value="high"/>';
	flashTag += '<param name="flashvars" value="' + params + '"/>';
	flashTag += '<param name="allowscriptaccess" value="always"/>';
	flashTag += '<embed src="' + file + '"';
	flashTag += ' width="' + width + '"';
	flashTag += ' height="' + height + '"';
	flashTag += ' type="application/x-shockwave-flash"';
	flashTag += ' name="' + id + '"';
	flashTag += ' allowscriptaccess="always"';
	flashTag += ' quality="high"';
	flashTag += ' wmode="' + wmode + '" ';
	flashTag += ' flashvars="' + params + '" ';
	flashTag += ' swliveconnect="true" ';
	flashTag += ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
	flashTag += '</embed>';
	flashTag += '</object>';
	document.write(flashTag);
}

function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
}
if (window.addEventListener)
	window.addEventListener("onload", correctPNG, false);
else

window.attachEvent("onload", correctPNG);

<!--
//
var t = 7;
var rand_disp = 0;
t *= 1000;
var c;
var d;
var ixI = 0;
var ixU = 0;
var ixA = 0;
var ixW = 0;
var arI = new Array();
var arU = new Array();
var arA = new Array();
var arW = new Array();
var arC = new Array();
var arG = new Array();



var n = arI.length;

function ImgI(loc) {
	this.image_item = new Image();
	this.image_item.src = loc;
}

function ImgU(arU) {
	this.content = arU;
}

function ImgA(arA) {
	this.content = arA;
}

function ImgW(arW) {
	this.content = arW;
}

function getILoc(obj) {
	return(obj.image_item.src);
}

function getIURL(obj) {
	return(obj.content);
}

function getIAlt(obj) {
	return(obj.content);
}

function getIWin(obj) {
	return(obj.content);
}

function gen(x, y) {
	var r = y - x + 1;
	return Math.floor(Math.random() * r) + x;
}

function getNxtI() {
	if ((rand_disp)||(ixI % n ==0 && ixI!=0)) {
		ixI = gen(0, n-1);
	}
	else {
		ixI = (ixI+1) % n;
	}

	var i = getILoc(arI[ixI]);
	return(i);
}

function getgURL(row, col) {
    var tIx = arG[row][col];
	var u = getIURL(arU[tIx]);
	var w = getIWin(arW[tIx]);
	getURL(u, w);
}

function getURL (u, w) {
	if (w == 1) {
		x = screen.availWidth/2 - 680/2;
		y = screen.availHeight/2 - 550/2 - 85;
		window.open(u, "newwindow", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,location=top,status=no,width=680,height=550,ScreenX=0,ScreenY=0,Top="+y+",Left="+x);
		return false;
	}
	else{
		location.href=u;
	}
}

function grotate(p, q, o) {
	var i = getNxtI();
	arG[q][o] = ixI;
	document[p].src = i;
	document[p].alt = getIAlt(arA[ixI]);
	var r = "grotate('"+ p +"', " + q + ", " + o + ")";
	setTimeout(r, t);
}

function rotateAll() {
	if (n > 0) {
	    for (var j = 0; j < d; j++) {
			for (var i = 0; i < c; i++) {
				grotate('gImagec'+j+'r'+i,j,i)
			}
		}
	}
}

function getBar(z, w, h, s) {
	getGrid(1, 1, z, w, h, s, "");
}

function getGrid(y1, y2, z, w, h, s, cs) {
    c = z;
    d = y1;
    for (var y = y2; y >= y1; y--) {
        if ((n/z) >= y) {
            d = y;
            break;
		}
	}
    if (n > 0) {
        arG = new Array();
        for (var j = 0; j < d; j++) {
            arG[j] = new Array(z);
			if (j != 0) {
			    document.write(cs);
			}
			for (var i = 0; i < c; i++) {
			    if (i != 0) {
			        document.write(s);
				}
				document.write("<a href='#' onclick='javascript:getgURL(" + j + ", " + i + ");'>");
				document.write("<img name='gImagec" + j + "r" + i + "' src='pic/profiled_preload.gif' width='" + w + "' height='" + h + " ' alt='' border='0'></a>");
			}
		}
	}
}

function getSGrid(z, w, h, s, cs) {
	t = 0;
	c = z;
	var x = 0;
	if (n % z == 0) {
		d = (n/z);
	}
	else {
	    d = ((n-(n%z))/z) + 1;
	}

    if (n > 0) {
        arG = new Array();
        for (var j = 0; j < d; j++) {
            arG[j] = new Array(z);
			if (j != 0) {
			    document.write(cs);
			}
			for (var i = 0; i < c; i++) {
			    if (i != 0) {
			        document.write(s);
				}
				if (x < n) {
					document.write("<a href='#' onclick='javascript:getURL(\"" + getIURL(arU[x]) + "\", " + getIWin(arW[x]) + ");return false;'>");
					document.write("<img src='" + getILoc(arI[x]) + "' width='" + w + "' height='" + h + " ' alt='" + getIAlt(arA[x]) + "' border='0'></a>");
				}
				else {
				    document.write("&#160;");
				}
				x++;
			}
		}
	}
}

//-->

function getGridBpo()
{
getGrid(1,7,1,70,40,"</td><td bgcolor=\"#ffffff\" width=\"120\" align=\"center\">","</td></tr><tr height=\"60\"><td bgcolor=\"#ffffff\" width=\"120\" align=\"center\">");rotateAll();
}

function footer()
{
	copy="Copyright &copy; ";
	js=" JobStreet.com";
	today=new Date();
	y0=today.getFullYear();
	country5=location.href; 

	if (country5.indexOf("my.jobstreet.com") > 0)
	{path="http://my.jobstreet.com/"}
	else if (country5.indexOf("sg.jobstreet.com") > 0)
	{path="http://sg.jobstreet.com/"} 
	else if (country5.indexOf("ph.jobstreet.com") > 0)
	{path="http://www.jobstreet.com.ph/"} 
	else if (country5.indexOf("www.jobstreet.com.ph") > 0)
	{path="http://www.jobstreet.com.ph/"} 
	else if (country5.indexOf("call-center-bpo.jobstreet.com.ph") > 0)
	{path="http://www.jobstreet.com.ph/"} 
	else if (country5.indexOf("in.jobstreet.com") > 0)
	{path="http://in.jobstreet.com/"} 
	else if (country5.indexOf("vn.jobstreet.com") > 0)
	{path="http://vn.jobstreet.com/"} 
	else if (country5.indexOf("th.jobstreet.com") > 0)
	{path="http://th.jobstreet.com/"} 
	else if (country5.indexOf("bd.jobstreet.com") > 0)
	{path="http://bd.jobstreet.com/"} 
	else if (country5.indexOf("id.jobstreet.com") > 0 || country5.indexOf("myjobstreet-id.jobstreet.com") > 0 || country5.indexOf("search6.jobstreet.com") > 0)
	{path="http://id.jobstreet.com/"} 
	else
	{path="http://sg.jobstreet.com/"}

	document.write("<style>a.footer_link{font-family:Verdana, Tahoma, Arial, Helvetica, sans-serif; color:#000; font-size:8pt; font-weight:normal; letter-spacing:normal; text-decoration:underline}</style>");
	document.write("<style>a.footer_link:hover{font-family:Verdana, Tahoma, Arial, Helvetica, sans-serif; color:#000; font-size:8pt; font-weight:normal; letter-spacing:normal; text-decoration:underline}</style>");
	document.write("<style>.white{font-family:Verdana, Tahoma, Arial, Helvetica, sans-serif; color:#000; font-size:8pt; font-weight:normal; letter-spacing:normal; text-decoration:none}</style>");
	document.write("<style>.td7{font-family:Verdana, Tahoma, Arial, Helvetica, sans-serif; color:#000; font-size:8pt; font-weight:bold; letter-spacing:0px;}</style>");
	document.write("<style>.copyrights{font-family:Verdana, Tahoma, Arial, Helvetica, sans-serif; color:#000; font-size:8pt; font-weight:normal; letter-spacing:normal; line-height:14px}</style>");

	document.write("<TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0><TR>");
	document.write("<TD><a class=footer_link href='");
	document.write(path);
	document.write("aboutus/terms_use.htm'>Terms of Use</a> | ");
	document.write("<a class=footer_link href='");
	document.write(path);
	document.write("aboutus/privacy_policy.htm'>Privacy Policy</a> | ");
	document.write("<a class=footer_link href='");
	document.write(path);
	document.write("announcement/2006/s/sus.htm'>Safe Job Search Guide</a> | ");
	document.write("<a class=footer_link href='");
	document.write("http://myjobstreet-beta.jobstreet.com/home/help.php?site=ph'>Help</a> | ");
	document.write("<a class=footer_link href='");
	document.write(path);
	document.write("aboutus/default.htm'>About Us</a> | ");
	/*document.write("<a class=footer_link href='");
	document.write("#' onclick='fdbk(); return false;''>Send Feedback</a> | ");*/
	document.write("</TD>");
	document.write("<TD class=white align=right>");
	document.write(copy);
	document.write(y0);
	document.write(js); 
	document.write("</TD></TR></TABLE>");
 }
