function showHide(blocknum, isOpen) {
//alert("In showHide")
hid = ('hide' + (blocknum));
unhid = ('click' + (blocknum));
if( document.getElementById ) {
	if( document.getElementById(hid).style.display ) {
		if( isOpen != 0 ) {
			document.getElementById(hid).style.display = "block";
			document.getElementById(unhid).style.display = "none";
		} else { 
			document.getElementById(hid).style.display = "none";
			document.getElementById(unhid).style.display = "block"; 
			}
		} 
	else { 
		location.href = isOpen;
			return true; 
			}
			} else { 
		location.href = isOpen;
	return true; 
	}
}

function entsub(myform) {
  if (window.event && window.event.keyCode == 13)
    myform.submit();
  else
    return true;}
    
function confirmDelete(delUrl) {
  if (confirm("Are you sure you want to delete")) {
    document.location = delUrl;
  }
}

function CheckNumeric()
{
   // Get ASCII value of key that user pressed
   var key = window.event.keyCode;

   // Was key that was pressed a numeric character (0-9)?
   if ( key > 47 && key < 58 || key == 46 )
      return; // if so, do nothing
   else
      window.event.returnValue = null; // otherwise, 
	                               // discard character
}

function CheckNotNull(mField)
{
   if ((mField.value.length==0) ||
   (mField.value==null)) {
      mField.focus();
      alert('Price can not be empty.\nPlease enter price or 0.');
      window.event.returnValue = null;
   }
}


function LostPassword()
{
  // alter the action and submit the form
  document.Login.action="xt_LoginProcess.asp?SendPassword=1";
  document.Login.submit();
}