 function OpenPopup(url,w,h)
 {
     strFeature="width="+w+", Height="+h+",scrollbars=yes,toolbar=no,scrollbar=no, menubar=no, status=no, location=no,directories=no       ";
     objNewWindow=window.open(url,"Info", strFeature);
     return false;
 }

function ClickSelectMailIssue(c,a)
{
//    alarm('dfsdfsdfsdfsdfsdfsdfsfs');
 if(opener!=null && opener.document.sndfrm != null)
  {
    opener.sndfrm.batchid.value=c;
    opener.sndfrm.batchname.value=a;
  }
 self.close();
 return false;
}

function ClickSelectCircularItem(c,a)
{
//    alarm('dfsdfsdfsdfsdfsdfsdfsfs');
 if(opener!=null && opener.document.frm1 != null)
  {
    opener.document.frm1.add_id.value=c;
    opener.document.frm1.add_title.value=a;
  }
 self.close();
 return false;
}

function ClickSelectAppDate(c)
{
//    alarm('dfsdfsdfsdfsdfsdfsdfsfs');

    if(opener!=null && opener.document.appfrm != null)
    {
        opener.document.appfrm.appdate.value=c;
        opener.document.appfrm.action.value='refresh';
        opener.document.appfrm.submit();
    }
    self.close();
    return false;
}

function sendEditCell(row,col){

	document.table_form.action.value="edit";
	document.table_form.xrow.value=row;
	document.table_form.xcol.value=col;
	document.table_form.submit();
	return false;

}


function updateEditCell() {

	document.table_form.action.value="update";
	document.table_form.submit();
	return false;

}

function updateAddRow() {

	document.table_form.action.value="add_row";
	document.table_form.submit();
	return false;

}
function updateAddColumn() {

	document.table_form.action.value="add_column";
	document.table_form.submit();
	return false;

}


function updateRemoveRow(row){
	document.table_form.xrow.value=row;
	document.table_form.action.value="remove_row";
	document.table_form.submit();
	return false;

}


function updateRemoveCol(col){
	document.table_form.xcol.value=col;
	document.table_form.action.value="remove_column";
	document.table_form.submit();
	return false;

}

function searchExec() {
	var txt = document.getElementById("search_str");
	document.location.href="search.php?query="+txt.value;
    return false;
}

function checkKeyDown(event) {
	if (event.keyCode==13) return searchExec();

    return false;
}


function homePageOnLoad() {


}



function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}

