function openWin(page,win_width,win_height) {

    try {
    	popup_window.close();
    } catch(e) {
					
    }

    if ( page.indexOf("mailto") == -1 ) {
    	var options = "scrollbars=yes, width=" + win_width + ", height=" + win_height;
    	var win = window.open(page, 'MyWin', options);
    	if (window.focus) { win.focus() }
    }
}

	
	function openPool(page, name)
	{
		newWin = window.open(page, name,'width=430, resizable=yes height=400, scrollbars=yes, left=10,top=20');
		if (window.focus) { newWin.focus() }
	}
		
	function settopimg(){
		
//		document.getElementById('rightimg').style.top=document.getElementById('tabb').offsetHeight-548+"px";
	}
	
	function settopimg1(){
	//	alert("tabb"+document.getElementById('tabb').offsetHeight);
		document.getElementById('rightimg').style.top=document.getElementById('tabb').offsetHeight-350+"px";
	}
	function settopimgindex(){
		document.getElementById('rightimage').style.top=document.getElementById('tab1').offsetHeight-79+"px";
	}
	
	
  	
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 calculateFormImgBrdrCssProperties() { 
	var headerHeight = document.getElementById("formcenter").offsetHeight;
	document.getElementById("leftspan").style.height=headerHeight+5+"px";
	document.getElementById("rightspan").style.height=headerHeight+2+"px";
	document.getElementById("formcenter").style.height=headerHeight+"px";
}  
 
function calculateIndexImgBrdrCssProperties() { 
	var headerHeight = document.getElementById("indexcenter").offsetHeight;
	document.getElementById("leftspanindex").style.height=headerHeight+10+"px";
	document.getElementById("rightspanindex").style.height=headerHeight+12+"px";
	document.getElementById("indexcenter").style.height=headerHeight+"px";
}   