function openWin(page, name)
	{
		newWin = window.open(page, name,'width=370, resizable=yes height=300, scrollbars=yes, left=10,top=20');
		if (window.focus) { newWin.focus() }
	}

	function gallery(page, name)
	{
		newWin = window.open(page, name,'width=450, resizable=yes height=450, scrollbars=yes, left=10,top=20');
		if (window.focus) { newWin.focus() }
	}
function openWin(page,wid,hegt) {
 	
  var options = "scrollbars=yes, width=" + wid + ", height=" + hegt;
   var win = window.open(page, 'MyWin', options);
    if (window.focus) { win.focus() }
 
}
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() {
   
   if(document.getElementById('submitBtn1')!=null)
   {
   	  document.getElementById('submitBtn1').className = 'tshow'; 
   }else if(document.getElementById('submitBtn')!=null)
   {
   	  document.getElementById('submitBtn').className = 'tshow';
   }
   
   if(document.getElementById('processing1')!=null)
   {
   	  document.getElementById('processing1').className = 'thide'; 
   }else if(document.getElementById('processing')!=null)
   {
   	  document.getElementById('processing').className = 'thide';
   }
   
}  

function setHeight()
{
	document.getElementById("backgrnd").style.height=document.getElementById("tab1").offsetHeight+85+"px";
	document.getElementById("backgrndbottom").style.top=document.getElementById("backgrnd").offsetHeight+330+"px";
	document.getElementById("maindiv").style.height=document.getElementById("backgrnd").offsetHeight+350+"px";
	document.getElementById("tab2").style.top=document.getElementById("maindiv").offsetHeight+0+"px";
	
}	