

function open_window(theURL,winName,features) {
	window.open(theURL,winName,features);
	winName.screenX = 40;
	winName.screenY = 10;
}
function abort(message) {
	window.alert(message);
	window.close();
} 

function addbookmark(){
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

validated = new Array
fldlist = new Array

/*
// Generic type input validator //
function validate(id, type,width,dec,low,high,parms) {
	object = getItemById(id)
	if (type == "N" or type == "S") {
		validated[object.id] = true;
		if (!isaPosNum(object.value)) {
			alert("positve numeric value required");
			validated[object.id] = FALSE;
		}
		if (type == "S") {
			if (isNaN(object.value) {
				alert("This is a numeric field");
				validated[object.id] = FALSE;
			}
		}
		if (!low == "")
		{
			if (object.value < low)
			{
				alert("input must be over " + low);
				validated[object.id] = FALSE;
			}
		}
		if (!high == "")
		{
			if (object.value > high)
			{
				alert("input must be below " + high);
				validated[object.id] = FALSE;
			}
		}
		if (object.strlen > width)
		{
			alert("input length is greater than the maximum allowed [" + high + "]");
			validated[object.id] = FALSE;
		}

	}

	return TRUE;
}
function finalvalidation() {
	var notvalidated = false
	for (x in fldlist )
	{
		if (validated[x] !=== true)
		{
			notvalidated = true
		}
	}
	if (notvalidated == false)
	{
		edit.submit();
	}
}
function classExists(c) { 
    return typeof(c) == "function" && typeof(c.prototype) == "object") ? true : false; 
} */


