//try to excute a method if error,it will try to excecute again until it succes
function loopExecuteSth(todo){
	try{
		eval(todo);
	}catch(e){
		setTimeout("loopExecuteSth("+todo+")",500);
	}
}

//set the homePage.jsp  iframe height by name,the toSet is the hight value 
function setFrameSize(framename,toSet){
	try{
		document.all[framename].height=toSet; 
	}catch(e){
	}
	parent.document.all.homePage_main.height=document.body.scrollHeight;
}


function setFrameHeight(){
	try{
		parent.setFrameSize('mainCon',document.body.scrollHeight)
	}catch(e){
		parent.document.all.homePage_main.height=document.body.scrollHeight;
	}
}