﻿function inputfocus(field) {
	field.className="current";
}

function inputunfocus(field) {
	field.className="regular";
}

function inputunfocusopt(field) {
	field.className="regularoptional";
}

function setWaiting(el) {
    //alert("set waiting");
	el.className = el.className + "on";
}

function validateAndSetWaiting(el) {
    //alert("in validate and set waiting");
    Page_ClientValidate(); 
    if (Page_IsValid) { 
        setWaiting(this); 
        return true;
    }
}

function showtablerow(which) {
	try {
	  document.getElementById(which).style.display = 'table-row';
	} catch(e) {
	  document.getElementById(which).style.display = 'block';
	}	
}

