
function bookmark_us(url, title){
title = "HOTA - " + title
if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
} 
else if(document.all)// ie
    window.external.AddFavorite(url, title);
}

function FontSize( size ) {
	
   var size = size;	
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
  	 parseInt(p[i].style.fontSize.replace("px",""));	 
     p[i].style.fontSize = size+"px";
   }
   var p = document.getElementsByTagName('li');
   for(i=0;i<p.length;i++) {
  	 parseInt(p[i].style.fontSize.replace("px",""));	 
     p[i].style.fontSize = size+"px";
   }  
 
}

function printContent(id){
	str=document.getElementById(id).innerHTML
	newwin=window.open('','printwin','left=100,top=100,width=650,height=600,scrollBars=1')
	newwin.document.write('<HTML>\n<HEAD>\n')
	newwin.document.write('<TITLE>Print Page</TITLE>\n')
	newwin.document.write('<script>\n')
	newwin.document.write('function chkstate(){\n')
	newwin.document.write('if(document.readyState=="complete"){\n')
	newwin.document.write('window.close()\n')
	newwin.document.write('}\n')
	newwin.document.write('else{\n')
	newwin.document.write('setTimeout("chkstate()",2000)\n')
	newwin.document.write('}\n')
	newwin.document.write('}\n')
	newwin.document.write('function print_win(){\n')
	newwin.document.write('window.print();\n')
	newwin.document.write('chkstate();\n')
	newwin.document.write('}\n')
	newwin.document.write('<\/script>\n')
	newwin.document.write('<link href="manulife_sg_print.css" rel="stylesheet" type="text/css" />\n')
	newwin.document.write('</HEAD>\n')
	newwin.document.write('<BODY bgcolor="#ffffff" onload="print_win()" >\n')
	newwin.document.write(str)
	newwin.document.write('</BODY>\n')
	newwin.document.write('</HTML>\n')
	newwin.document.close()
}

function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
} 

function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }

function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

function openWindow(url,w,h){
var windowprops = "width=" + w + ",height=" + h;
popup = window.open(url,'remote',windowprops);
}
