function confDel(confStr) {
    var conf = confirm(confStr);
    if(conf) { return true; }
    else {  return false;  }
}
<!--
//------------------FORM VALIDATION-----------------
var error_string;
var first_errorObj;
function chk_error(objName,errMsg){
        if(trim_str(objName.value)==''){
            error_string=error_string+errMsg+'\n';
            if(first_errorObj==null)
                {
                  first_errorObj=objName;
                }
            objName.focus();
        }
}
function checkEmail(str){
  var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
  if (filter.test(str)){
     return true;
  }
  else
  {
      alert("Please input a valid email address!");
      return false;
  }
}
function checkEmailNoAlert(str){
  //var str=document.validation.emailcheck.value
  var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i  
  return  filter.test(str); 
}
function chk_number(objName,errMsg){
	if(!isNan(objName.value)){
		error_string=error_string+errMsg+'\n';
		if(first_errorObj==null)
			{
			  first_errorObj=objName;
			}
		objName.focus();
	}
}

//Funtion to trim the variable. Lines 18
function trim_str(variable){
	var icount=0;
	var var_len=variable.length;
	for (icount=0;icount<=var_len;icount++){
		if(variable.charAt(0)==' '){
			variable=variable.substring(1,variable.length);
		}
	}
	var_len=variable.length;
	for (icount=0;icount<=var_len;icount++){
		if (variable.charAt(variable.length-1)==' '){
			variable=variable.substring(0,variable.length-1);
		}
	}
	return variable;
}

//------------------xxxxxxx-----------------
//CREATE AJEX OBJECT
function getAjexObject(){
  try { return new XMLHttpRequest(); } catch(e) {}
  try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
  try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}  
  alert("XMLHttpRequest not supported");
  return null;
}

// OPEN NEW WINDOW //
function NewWindow(mypage,myname,w,h,scrol){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrol+',resizable=1, toolBar=0, menu=0';
	var win = window.open(mypage,myname,settings);
	return win;

}

/* window 'load' attachment */
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	}
	else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}
/* Short Cut for getElementById*/
function $(element){
    if (typeof element == 'string') {
        if (document.getElementById) {
            element = document.getElementById(element);
        } else if (document.all) {
            element = document.all[element];
        } else{
            element = false;
        }
    } else {
        element = false;
    }
    return element;
}

