// JavaScript Document

function openWin(winURL, winName, winBox){
	window.open(winURL, winName, winBox);
}

function winDirect(formName, target){
	var formVar = "document." + formName + ".target";
	eval(formVar) = target;
}

function emptyvalidation(entered, alertbox)
{
	// Emptyfield Validation by Henrik Petersen / NetKontoret
	// Explained at www.echoecho.com/jsforms.htm
	// Please do not remove this line and the two lines above.
	with (entered)
	{
		if (value==null || value=="")
			{if (alertbox!="") {alert(alertbox);} return false;}
		else {return true;}
	}
}

function text(txt) {
 		window.status = txt;
}

function enableField(fieldChecked, fieldEnabled){
	if(eval(fieldChecked).value != ""){
		eval(fieldEnabled).disabled = false;
	}
	else{
		eval(fieldEnabled).disabled = true;
	}
}

function popcal(vCaption, vField, vDate){ 
	var nW = window.open("", "calendar", "resizable=no,scrollbars=no,width=300,height=320"); 
	nW.location.href = "popcalendar.asp?caption=" + escape(vCaption) + "&field=" + vField + "&date=" + vDate; 
	nW = null; 
} 