
function setFormHeight()
{
					var upperheight=document.getElementById("img-row4").offsetHeight;
					var discheight=document.getElementById("formcontentdisc").offsetHeight;
					document.getElementById("Inrect").style.height=document.getElementById("Dblurb").offsetHeight+document.getElementById("imgpositn").offsetHeight+5+"px";
					document.getElementById("imgpositn").style.top=document.getElementById("Dblurb").offsetHeight-1+"px";
					document.getElementById("formcontentdisc").style.height=document.getElementById("Dblurb").offsetHeight+document.getElementById("imgpositn").offsetHeight+30+"px";
					document.getElementById("formbody2").style.top=document.getElementById("formcontentdisc").offsetHeight+90+"px";
					document.getElementById("img-row111").style.height=document.getElementById("formbody2").offsetHeight+document.getElementById("formcontentdisc").offsetHeight+upperheight-32+"px";
					document.getElementById("footer-container").style.top=document.getElementById("img-row111").offsetHeight+"px";
					document.getElementById("discstyle").style.top=document.getElementById("img-row111").offsetHeight+20+"px";
					
					
}
function setFormHeight1()
{
					document.getElementById("footer-container").style.top=720+"px";
					document.getElementById("footerdisc").style.top=740+"px";

					
}


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=no,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;
        		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","formBody","txt"); 		
		var outbox =new Array("formBody","lt-content");		
		
	var h=getHeight(outerbox);
	 adjustHeight(outerbox, h);	
	 adjustHeight(outbox, h+20);	
	 
}			

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

	var h=getHeight(outerbox);
	 adjustHeight(outerbox, h);	
}			
		
	
function doProcessing() {
   
   if(document.getElementById('submitBtn1')!=null)
   {
   	  document.getElementById('submitBtn1').className = 'thide'; 
   }else if(document.getElementById('submitBtn')!=null)
   {
   	  document.getElementById('submitBtn').className = 'thide';
   }
   
   if(document.getElementById('processing1')!=null)
   {
   	  document.getElementById('processing1').className = 'tshow'; 
   }else if(document.getElementById('processing')!=null)
   {
   	  document.getElementById('processing').className = 'tshow';
   }
   
}
function doProcessing1() {
	document.getElementById('submitBtn').className = 'tshow';
	document.getElementById('processing').className = 'thide';
	
} 


