<!--

function Start(URL, width, height) 
{
	var aw = screen.availWidth;	
	aw = eval("aw - 550"); 
	
	windowprops = "toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1,left=" + aw + ",top=250,width=340,height=" + height;
	preview = window.open(URL, "preview", windowprops);
}

function SelectIt(PageURL)  
{ width = 340; height = 400; url = PageURL; delay = 2; timer = setTimeout("Start(url, width, height)", delay*1000); }

function SelectItDim(PageURL,width,height)
{
	var aw = screen.availWidth; var ah = screen.availHeight; aw = eval("aw - width - 50");  ah = eval("ah - height - 50"); 
	NewPopup=window.open(PageURL,"_NewPopup_","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,left=150,top=50,width=" + width + ",height=" + height)
}
function SelectItDimNew(PageURL,width,height)
{
	var aw = screen.availWidth; var ah = screen.availHeight; aw = eval("aw - width - 50");  ah = eval("ah - height - 50"); 
	NewPopupWin=window.open(PageURL,"_NewPopupWin_","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,left=200,top=75,width=" + width + ",height=" + height)
}

function GetElement(idName) {
    if (document.getElementById) { return document.getElementById(idName); } 
    else if (document.layers) { return document.layers[idName]; } 
    else if (document.all) { return document.all[idName]; } 
}

var totalResults = 0;
var searched = "";
var n = 0;
self.onerror = function() { return true; }
function loadSearchContent(t, c, n) {
    if (searched.indexOf(t,0) == -1) {
		totalResults += n;
		GetElement("search-results-"+t).innerHTML = c;
		GetElement("search-num-"+t).innerHTML = n;
		if (n>0) { GetElement("search-marker-"+t).style.display = 'none'; GetElement("search-link-"+t).style.display = 'inline'; }
		searched += t;
    }
}
//' ******************************************************************************
//'	Name:			disableForm
//'	Description:	JavaScript function to disable the form after is it submitted
//'	Written by:		Kyle Parker
//'	Date:			October 14, 2003
//' *******************************************************************************

function DisableForm(theform) 
{
	if (document.all || document.getElementById) 
	{
		for (i = 0; i < theform.length; i++) { var tempobj = theform.elements[i]; if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset") tempobj.disabled = true;}
		return true;
	} else { return false; }
}

//-->