<!--
// this code is for the blink part of the box function
// include this in your body tag if you use the blink function
//onload=BlinkMyText();
function BlinkMyText() 
{	if(document.getElementById && document.all)
	{	obj = document.getElementsByTagName("BLINK");
		for (var i=0; i<obj.length; i++)
			if (obj[i].style.visibility=="hidden") 
			{	obj[i].style.visibility="visible";}
			else 
			{	obj[i].style.visibility="hidden";}
		setTimeout('BlinkMyText()',450);
	}
}

myPopup = '';

function openUnsizedPopup(url,windowname) 
{var txtPopUp 
    myPopup = window.open(url,windowname);
    if (!myPopup.opener)
         myPopup.opener = self; 
}
function openPopupWithOptions(url,WName,Opts) 
{var txtPopUp 
    myPopup = window.open(url,WName,Opts);
		myPopup.focus();
    if (!myPopup.opener)
         myPopup.opener = self; 
}

function openPopup(url) 
{var txtPopUp 
    myPopup = window.open(url,'popupWindow','width=w,height=h');
    if (!myPopup.opener)
         myPopup.opener = self; 
}

function openSizedPopup(url,h,w) 
{var txtPopUp = "myPopup = window.open(url,'popupWindow','width="+ w + ",height=" + h + "')";
	eval (txtPopUp)
	if (!myPopup.opener)
		myPopup.opener = self; 
}

function openSizedPopupWithNameScroll(url,h,w,windowname) 
{var txtPopUp = "myPopup = window.open(url,windowname,'width="+ w + ",height=" + h + " scrollbars=yes ')";
	eval (txtPopUp)
	if (!myPopup.opener)
		myPopup.opener = self; 
}

function openSizedPopupWithScroll(url,h,w) 
{var txtPopUp = "myPopup = window.open(url,'popupWindow','width="+ w + ",height=" + h + " scrollbars=yes ')";
	eval (txtPopUp)
	if (!myPopup.opener)
		myPopup.opener = self; 
}
function openSizedPopupWithQueryString(obj,blnIsNum,url,h,w) 
{	if (blnIsNum && (isNaN(obj.value)||obj.value==""))
		alert("This is not a number");
	else
	{//var txtAlert = 'alert("url=" + url + "?value=" + obj.value + " Width=" + w + " objValue=" + obj.value)';
	 // 	eval (txtAlert);
	 var txtPopUp = "myPopup = window.open(url+'?value='+obj.value,'popupWindow','width="+ w + ",height=" + h + "')";
		eval (txtPopUp)
		if (!myPopup.opener)
			myPopup.opener = self; 
	}
}

function jsForward(strPage)
{
	window.location.href = strPage
}

function CheckBlankText(FormName,FieldName,DefaultText,IsNum)
{var re = /[^\d\.]/g;
 var tmpStr;
 var sp;
 var strValue = (eval("document." + FormName + "." + FieldName + ".value"));
 var intLenValue = strValue.length;
 var strFinalValue;
 var intLenFinalValue;
 
	if (IsNum)
		tmpStr = eval("document." + FormName + "." + FieldName + ".value.replace(re,'')")
	else
		tmpStr = eval("document." + FormName + "." + FieldName + ".value")
	re = /\S/i;
	sp = tmpStr.search(re);
	if (sp==-1)
		eval("document." + FormName + "." + FieldName + ".value='" + DefaultText + "'")
	else
		eval("document." + FormName + "." + FieldName + ".value='" + tmpStr + "'")
		
	strFinalValue = (eval("document." + FormName + "." + FieldName + ".value"));
	intLenFinalValue = strFinalValue.length;
	if (intLenFinalValue != intLenValue && IsNum & eval('window.document.'+FormName+'.'+FieldName+'.value!=\''+DefaultText+'\''))
	{	alert('The value entered was not appropriate for the field and may need to be corrected.');
		if (!DefaultText)
		{	eval("document." + FormName + "." + FieldName + ".focus()");
		}
		return false;
	}
}

function ClearDefaultText(FormName,FieldName,DefaultText)
{	if	((!eval('document.' + FormName + '.' + FieldName + '.readOnly')) && 
		  (eval('document.' + FormName + '.' + FieldName + '.value')==DefaultText))
	{	eval("document." + FormName + "." + FieldName + ".value=''")
	}
}

//-->

