function confirm_ex(val){ 
if (confirm("Delete This Item\n\n OK=Yes - Cancel=No")){ 
window.location=val;
}
} 

function checkForm(theform){
cht = 0;
cht2 = 0;
var msg = "Please fill out all\nthe fields before submitting.";

for (x = 0; x < theform.elements.length; x++){
   var el = theform.elements[x];
   if (el.id == 'need') {
         if (el.value == ''){
            //alert(msg);
            el.className='formError';
            cht = 1;
            }else{
			el.className='formOK'; 
			}
       }

} 
if (cht == 1){
alert(msg);
return false;
}else{
return true;	   
}               

}
  function getValue(y,x)
  {
    var sel = document.getElementById(y);
    for(i=0;i<sel.length;i++)
      if(sel[i].value==x) { sel.value = sel[i].value }
  }