

function openWindow( URL, width, height, resizable, scrollbars)
{
  try
	{
		newWindow.close(); 
	}
	catch(e)
	{
				
	}

	newWindow=window.open( URL,'page',"status=no,location=no,menubar=no,toolbar=no,directories=no,resizable=" + resizable + ",scrollbars=" + scrollbars + ",width=" + width + ",height=" + height + ",screenX=100,screenY=100");	
    window.onerror = null;
} 



function getHeight(box) {
	var h;
	for(var x=0;x<box.length;x++){
	 	// set outer table		
	 		h = document.getElementById(box[x]).offsetHeight;		
      		for(var y=0;y<box.length;y++){
        		var test_h = document.getElementById(box[y]).offsetHeight;
				test_h=test_h+60;
				if (test_h<460) test_h=460;
        		if(h<test_h) h = test_h;
      		}  
		}
	return h;		
}		

function adjustHeight(box,h) {
	//set the height of all divs to the tallest
   	for(var x=0;x<box.length;x++) {
		document.getElementById(box[x]).style.height = h +"px";
	}
}


function setHeight(){
		var outerbox = new Array("lt-content","rt-content"); 		
		var outbox1 =new Array("formInner");		
		var outbox2 =new Array("formBody");		
		
		
	var h=getHeight(outerbox);
	 adjustHeight(outerbox, h);	
	 adjustHeight(outbox1, h-18);	
	 adjustHeight(outbox2, h-16);	
	 
}			

function setPopHeight(){
		var outerbox = new Array("wht-bk","txt"); 		

	var h=getHeight(outerbox);
	if (h<190){
	 adjustHeight(outerbox, 190);	
	} else {
	 adjustHeight(outerbox, h);	
	}
}			
		
	
function doProcessing() {
   document.getElementById('submitBtn').className = 'thide'; 
   document.getElementById('processing').className = 'tshow';
}

