function combo(type){OpenWindow=window.open(type,"_parent")}
function combo_frame(type){OpenWindow=window.open(type,"_parent")}
function checkdate(){
  vStart = document.vDate.v_start.value;
  vEnd = document.vDate.v_end.value;
  vDify = vEnd-vStart;
  dStart=Date.parse(vStart);
  dEnd=Date.parse(vEnd);
  vDifd=(dEnd-dStart)/24/60/60/1000;
  if (dStart > dEnd) {alert("Your start date more than end date."); return (false);}
  if (vDifd > 65 ) {alert("Very long period. Make it not more than 65 days."); return (false);}
  else {return (true);}
}
function CheckMaxLength(Object, MaxLen)
{
  if(Object.value.length > MaxLen)
  {
    if (Object.value.length > MaxLen + 1)
      alert('Your input has been truncated at ' + MaxLen + ' characters.');
    else
      alert('Maximum length of ' + MaxLen + ' has been reached.');
    Object.value = Object.value.substring(0, MaxLen);
  }
}
function help_e(type)
{
	OpenWindow=window.open(type,"_nw","height=100,width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no")
}

