
//this function use to auto sizing the height of the IFRAME, e.g Health Advisory, Current News 
//on the bcontent.htm
//code founded by Nhi - 2007
function calcCurHeight(the_iframe)
{
var the_height=document.getElementById(the_iframe).contentWindow.document.body.scrollHeight;
//find the height of the internal page
var the_width=document.getElementById(the_iframe).contentWindow.document.body.scrollWidth;
//find the width of the internal page
if (the_height < 100){ 
document.getElementById(the_iframe).style.height=the_height;//change the height of the iframe
}
else {document.getElementById(the_iframe).style.height=150;}
document.getElementById(the_iframe).style.width=the_width;//change the width of the iframe

} 

function calcAlertHeight(the_iframe)
{
var the_height=document.getElementById(the_iframe).contentWindow.document.body.scrollHeight;
//find the height of the internal page
var the_width=document.getElementById(the_iframe).contentWindow.document.body.scrollWidth;
//find the width of the internal page
if (the_height < 100){ 
document.getElementById(the_iframe).style.height=the_height;//change the height of the iframe
}
else {document.getElementById(the_iframe).style.height=150;}
document.getElementById(the_iframe).style.width=the_width;//change the width of the iframe

} 
//End of CalcHeight function

function lasite(){
	document.gosearch.cx[0].checked = true

}

function trsite(){	
	document.gosearch.cx[1].checked = true

}
  