// JavaScript Document

/*function openPopUp(url, windowName, w, h, scrollbar) {

           var winl = (screen.width - w) / 2;
           var wint = (screen.height - h) / 2;
           winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrollbar ;
		   win = window.open(url, windowName, winprops);
           if (parseInt(navigator.appVersion) >= 4) { 
              	win.window.focus(); 
           } 
}

*/


function confirm_msg(msg,url){
	
	if(confirm(msg)){
		
		document.location = url;
		return true;
	 }else {
		 
		return false; 
		
	  }
	
} //// end function 



function openPopUp(url,windowName,w,h,scrollbar,resize){
	
	var win_l = (screen.width - w )/2;
	var win_t = (screen.height - h )/2;
	
	winprops = 'height='+h+',width='+w+',top='+win_t+',left='+win_l+',scrollbars='+scrollbar+',resizable='+resize;
	
	win = window.open(url,windowName,winprops);

	 if(parseInt(navigator.appVersion) >= 4 ){
		 
		 win.window.focus();
     }
}


 function submit_form(form_name){
	 	 
	 document.forms[form_name].submit(); 	 
  }
   
   
  
  function select_all(name,check_all,checkbox,row,bg_color_1, bg_color_2){

	  if(document.getElementById(check_all).checked==true){
	  
	      document.getElementById(check_all).checked==true;
		  
		   for(i = 1; i <= document.forms[name].length; i++){
		   
		    document.getElementById(checkbox+i).checked=true; document.getElementById(row+i).style.background = bg_color_1; 
		   
		   }
	  
	  }

	  else if(document.getElementById(check_all).checked==false){
			
		document.getElementById(check_all).checked==false;
			
		for(i = 1; i <= document.forms[name].length; i++){
		
		  document.getElementById(checkbox+i).checked=false; document.getElementById(row+i).style.background= bg_color_2;
		}
		
	   } 
	
	}
	

	function selectRow(row,bg_color){
		document.getElementById(row).style.background = bg_color;
	}

	function deselectRow(row,bg_color){
		document.getElementById(row).style.background = bg_color;
	}
	 
   
   
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->



function check_radiobutton(radio_name,alert_msg){
	
 var chk;
chk = document.getElementById(radio_name).checked;

  if(chk==false){
	  window.alert(alert_msg);
	 return false;
	}
	else{
	 return true;	
	}
	
}

 function show_alert(msg){
	 
	 window.alert(msg);
	 
   }














