//servises
function objDisable(obj,status){

obj.disabled=status;
//document.getElementById(obj).disabled=status;

}
//##############################################################
function disp_confirm(msg){
	var ok=confirm(msg)
	if (ok==true){
		return true
		}else{
		return false
	}
}
//##############################################################

function setCookie(c_name,val){
if(val!=""){
	var d = new Date();
	var nyear = d.getFullYear()+1;
	var cookie_name = "memoPad";
	document.cookie=c_name+"="+val+"; expires=Monday, 07-Apr-"+nyear+" 05:00:00 GMT";
	}
}
//##############################################################
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=")
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1 
    c_end=document.cookie.indexOf(";",c_start)
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end))
    } 
  }
return "";
}
//##############################################################
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
  newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

