function popUp(URL){
	id = (new Date()).getTime();
	eval("page" + id + " = window.open('"+URL+"','" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=560,height=500,left=200,top=20');");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_goToURL(){ //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function switchColor(x, bgcolor){
	document.all[x].style.backgroundColor = bgcolor;
}
  
function confirmReturn(msg){
	if(confirm(msg)){
		return true; 	
	}else{
		return false; 	
	}
}

function confirmURL(URL,msg){
  if(confirm(msg)){
    document.location = URL;
  }
}

function switch_Class(eid,class_name){
	document.getElementById(eid).className=class_name;
}

function switch_Checked(eid){
	var chk = document.getElementById(eid);
	if(chk.checked == false){chk.checked = true;}else{chk.checked = false;}
}

function switch_Display(eid,val){
	var el = document.getElementById(eid);
	if(val==0){el.style.display = "none";}else{el.style.display = "block";}
}

function submit_Form(frm_eid){
	document.forms[frm_eid].submit();
}