<!--


var cururl = window.location.href;
var posurl = cururl.indexOf("gb5?");
var newurl;

if (posurl>0) {
	newurl = cururl.substring(posurl+4,cururl.length);
	location.href = newurl;
}
else
{
	newurl = location.href;
}


function jumpto(curobj){
//if (curobj.selectedIndex!=0) {
//window.location=curobj.options[curobj.selectedIndex].value
//}

if (curobj.options[curobj.selectedIndex].value!="")
window.location=curobj.options[curobj.selectedIndex].value

}


function openprint(){

var dir = newurl.substring(0,newurl.lastIndexOf('?')+1);
var url = newurl.substring(dir.length,newurl.length+1);

window.open('http://www.sinchew-i.com/print.phtml?' + url);

}

function openrecom(){

var url = newurl;

self.location="http://www.sinchew-i.com/recom.phtml?"+url;

}



function opennewwin(fname,mheight,mwidth,mtop,mleft){

	PosTest = location.href.search("gb5");

	if (PosTest>0) {
		gbpath = "http://www.sinchew-i.com/cgi-bin/gb5?";
	}
	else
	{
		gbpath="";
	}
	window.open(gbpath+fname,"msg","scrollbars=yes,top=" + mtop + ",left=" + mleft + ",width=" + mwidth + ",height=" + mheight);
}

function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}


function set_b5cookie(){
	var now = new Date();

	fixDate(now);
	now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 10000);
	setCookie("LangPref","b5",now,"/",".sinchew-i.com");
//	setCookie("LangPref","b5",now,"/","172.18.172.2");
	self.location=newurl;
}

function set_gbcookie(){
	var now = new Date();

	fixDate(now);
	now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 10000);
	setCookie("LangPref","gb",now,"/",".sinchew-i.com");
//	setCookie("LangPref","gb",now,"/","172.18.172.2");
	self.location=newurl;
}

function bookmark()
{
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) 
	{ 
		var url=parent.location.href; 
		window.external.AddFavorite(url,document.title);	} 
  else  { 
		var msg = "Don't forget to bookmark us!"; 
		if(navigator.appName == "Netscape") msg += " (CTRL-D)"; 
			document.write(msg); 
	} 
}

function winPop(strURL,winHeight,winWidth) {

if (!winHeight) 
{ winHeight="300" ; }
if (!winWidth) 
{ winWidth="450" ; }
	
        strInfo = "menubar=no,toolbar=no,locationbar=no,personalbar=no,status=no,scrollbars=yes,resizable=yes,width=" +winWidth+ ",height=" +winHeight+ ",top=100, left=100";

	window.open(strURL, "popupWindow", "menubar=no,toolbar=no,locationbar=no,personalbar=no,status=no,scrollbars=yes,resizable=yes,width=" +winWidth+ ",height=" +winHeight+ ",top=100, left=100")

}

function showNow(strURL)
  {

	//if (stored_value == null)
  	//{
        //          nowWin = window.open(strURL,'Now','height=320,width=225,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
        //          nowWin.blur()
	//	  window.focus()
  	//}
   }

	
// End --> 