function unavailable() {
	alert("This page is not yet available");
}

function popUp(url, width, height, features) {
	t = (screen.width/2) - (width/2);
	l = (screen.height/2) - (height/2);
	pU = window.open(url, "popUp", "width="+width+",height="+height+",top=200,left=200,dependent,"+features);
}

function checkPopUp(url) {
	if(String(pU)=="null" || String(pU)=="undefined") {
		window.location.href = url;
	}
}

function validateForm(form, fields) {
	f = document[form];
	fA = fields.split(",");
	for (var i=0; i<fA.length; i++) {
		if (f[fA[i].split("|")[0]].value == "" || f[fA[i].split("|")[0]].value == 0) {
			alert("Please enter a value into '" + fA[i].split("|")[1] + "'.");
			return false;
			break;
		}
	}
	return true;
}

function buildEmail(theName, dom, tlDom, js, txt) {
	var theAddress = theName + "@" + dom + tlDom;
	if (txt == "" || String(txt)=="undefined") txt = theAddress;
	var emailStr = "<a href='mailto:" + theAddress + "' " + js + ">" + txt + "</a>";
	//alert(emailStr)
	document.write(emailStr);
}