
function wait()
{
	
   if ( document.body ){
      document.body.onclick = noclick;
   }
   if ( document.styleSheets.length > 0 ){
            document.styleSheets[0].addRule ( "*", "cursor:wait", 0 );
   } 
   var f = document.forms;
   for ( var i = 0; i < f.length; i++ )
   {
   		var e = f[i].elements;
        for ( var j = 0; j < e.length; j++ )
        {        
            e[j].onclick = noclick;    //  refers to the function below      
            e[j].onchange = noclick;
        }        
    }     
}

function noclick(){
	return false;
}
function doSubmit(linkpath){
  			document.oHSUSTabPannedForm.action=linkpath;  		
  			document.oHSUSTabPannedForm.submit();
	  		
  	   	}
  	   	function dotableSubmit(linkpath){
  	   		var sWidth = screen.width;
  	   		document.oHSUSTabPannedForm.action=linkpath+"/toc/layoutChange.do?swidth="+sWidth+"&id="+tableId+"&tableType="+tableType;
  	   		document.oHSUSTabPannedForm.submit();
  	   	}
  	   	function dofavtabSubmit(linkpath){
  	   	document.forms[0].screenWidth.value = screen.width;
  	   		var sWidth = screen.width;
  	   		//alert(tableId);
  	   		document.oHSUSTabPannedForm.action=linkpath+"/fav/favlayoutChange.do?swidth="+sWidth+"&id="+tableId;
  	   		document.oHSUSTabPannedForm.submit();
  	   	}
 		function doindextableSubmit(linkpath){
  	   		var sWidth = screen.width;
  	   		//alert(tableId);
  	   		document.oHSUSTabPannedForm.action=linkpath+"/indexes/indexlayoutChange.do?swidth="+sWidth+"&id="+tableId+"&tableType="+tableType;
  	   		document.oHSUSTabPannedForm.submit();
  	   	}
  		function dotableload(){
  	   		//alert(tableId);
  	   		document.oHSUSTabPannedForm.tableIdReq.value=tableId;
  	   		var sWidth = screen.width;
  	   		//document.oHSUSTabPannedForm.screenWidth.value=screen.width;
  	   		document.oHSUSTabPannedForm.action=webroot+"/table/tabletab.do?id="+tableId+"&swidth="+sWidth+"&tableType="+tableType;
  	   		document.oHSUSTabPannedForm.submit();	
  	   	}
	