function pooh(l, t, w, h,tm,dt){
             var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
                                          ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
             var URL = "../springrain/srt_form.php?time="+tm+"&dt="+dt;
             popup = window.open(URL,"MenuPopup",windowprops);
}
function poohdel(l, t, w, h,aid){
             var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
                                          ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
             var URL = "../springrain/del.php?aid="+aid;
             popup = window.open(URL,"MenuPopup",windowprops);
}
function editW(l, t, w, h,aid){
             var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
                                          ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
             var URL = "../springrain/editApp.php?"+aid;
             popup = window.open(URL,"MenuPopup",windowprops);
}
function poohlogin(l, t, w, h){
             var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
                                          ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
             var URL = "../springrain/login.php";
             popup = window.open(URL,"MenuPopup",windowprops);
}
function detail(l, t, w, h,aid){
             var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
                                          ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
             var URL = "../springrain/details.php?app_id="+aid;
             popup = window.open(URL,"MenuPopup",windowprops);
}
function editRem(l, t, w, h){
             var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
                                          ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
             var URL = "/springrain/mailer/edtRem.php";
             popup = window.open(URL,"MenuPopup",windowprops);
}
function bigCal(){
		var c=eval(document.getElementById('c'));
	   c.style.position='absolute';
	   c.style.top='50';
	   c.style.left='50';
	   c.style.zindex=1;
	   c.style.width='800px';
	   c.style.height='700px';
	   for (var i=1;i<43;i++){
		   cell=eval(document.getElementById(i));
		   cell.style.borderStyle='solid';
		   cell.style.borderLeftWidth='1px';
		   cell.style.borderTopWidth='1px';
		   cell.style.borderBottomWidth='0';
		   cell.style.borderRightWidth='0';
	       cell.style.borderColor='blue';
	       cell.align='left';
	   }
}
function addSel(frm){
	var out="";
	var e=frm['CATEGORY'];
	for (var i=0;i<e.options.length;i++ ){
       if(e.options[i].selected)out+=out+"  "+e.options[i].value;
	}
	alert(out);
	 frm['CATEGORY'].options=out;
	 frm.submit();
}
function setValue(obj,val) {
	   val="'"+val+"'";
       eval ("document.forms[0]." + obj + ".value")=val; 
	   }
var boo=0;
	function cellColor(row,col){
           boo++;
	   row.bgColor=col;
}
function chkEm(frm){
	  var eMail = /[\w\-]+\@[\w\-]+\.\w{2,3}/; 
	  if (!eMail.test(frm.E_MAIL.value)){
		alert("Valid E-Mail address required");
		return false;
	  }
	  return true;
}
