/* GUA JavaScript File */

<!-- Image Swapper Script
        if (document.images) {
            contestdetails_on = new Image(); 
            contestdetails_on.src ="/images/contestdetails_on.gif";
            contestdetails2_on = new Image(); 
            contestdetails2_on.src ="/images/contestdetails2_on.gif";
            contestdetails3_on = new Image(); 
            contestdetails3_on.src ="/images/contestdetails3_on.gif";
            contestdetails4_on = new Image(); 
            contestdetails4_on.src ="/images/contestdetails4_on.gif";
            contestdetails5_on = new Image(); 
            contestdetails5_on.src ="/images/contestdetails5_on.gif";
            contestdetails6_on = new Image(); 
            contestdetails6_on.src ="/images/contestdetails6_on.gif";
            requestquote_on = new Image();
            requestquote_on.src ="/images/requestquote_on.gif";
            requestquote2_on = new Image();
            requestquote2_on.src ="/images/requestquote_on.gif";
            requestquote3_on = new Image();
            requestquote3_on.src ="/images/requestquote_on.gif";

		
            contestdetails_off = new Image(); 
            contestdetails_off.src ="/images/contestdetails_off.gif";
            contestdetails2_off = new Image(); 
            contestdetails2_off.src ="/images/contestdetails2_off.gif";
            contestdetails3_off = new Image(); 
            contestdetails3_off.src ="/images/contestdetails3_off.gif";
            contestdetails4_off = new Image(); 
            contestdetails4_off.src ="/images/contestdetails4_off.gif";
            contestdetails5_off = new Image(); 
            contestdetails5_off.src ="/images/contestdetails5_off.gif";
            contestdetails6_off = new Image(); 
            contestdetails6_off.src ="/images/contestdetails6_off.gif";
		    requestquote_off = new Image(); 
            requestquote_off.src ="/images/requestquote_off.gif";
		    requestquote2_off = new Image(); 
            requestquote2_off.src ="/images/requestquote_off.gif";
		    requestquote3_off = new Image(); 
            requestquote3_off.src ="/images/requestquote_off.gif";
        }

// Function to 'activate' images.
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "_on.src");
        }
}

// Function to 'deactivate' images.
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "_off.src");
        }
}
// -->

<!--
var win = null;
function EduWin(){
LeftPosition = (screen.width) ? (screen.width-800)/2 : 0;
TopPosition = (screen.height) ? (screen.height-600)/2 : 0;
settings ='height=600,width=800,top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable'
myname = 'dashboard'
mypage = 'http://di brokerage.edulence.com/validate.asp'
win = window.open(mypage,myname,settings)
}
// -->

<!--
function description_window(url) {
        if(navigator.userAgent.indexOf("MSIE") == -1) {
      newwindow = window.open(url,'description','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=570,height=420');
      newwindow.focus();
    } else {
      window.open(url,'description','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=570,height=420');
    }
}
//-->

<!--
function description2_window(url) {
        if(navigator.userAgent.indexOf("MSIE") == -1) {
      newwindow = window.open(url,'description2','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=570,height=400');
      newwindow.focus();
    } else {
      window.open(url,'description2','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=570,height=400');
    }
}
//-->

<!--
function statusview_window(url) {
        if(navigator.userAgent.indexOf("MSIE") == -1) {
      newwindow = window.open(url,'statusview','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=550,height=350');
      newwindow.focus();
    } else {
      window.open(url,'statusview','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=550,height=350');
    }
}
//-->

<!--
function emailview_window(url) {
        if(navigator.userAgent.indexOf("MSIE") == -1) {
      newwindow = window.open(url,'statusview','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=550,height=450');
      newwindow.focus();
    } else {
      window.open(url,'statusview','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=550,height=450');
    }
}
//-->

<!-- 
<!-- http://www.shiningstar.net -->
<!-- Begin
function checkNumeric(objName,minval, maxval,comma,period,hyphen)
{
	var numberfield = objName;
	if (chkNumeric(objName,minval,maxval,comma,period,hyphen) == false)
	{
		numberfield.select();
		numberfield.focus();
		return false;
	}
	else
	{
		return true;
	}
}

function chkNumeric(objName,minval,maxval,comma,period,hyphen)
{
// only allow 0-9 be entered, plus any values passed
// (can be in any order, and don't have to be comma, period, or hyphen)
// if all numbers allow commas, periods, hyphens or whatever,
// just hard code it here and take out the passed parameters
var checkOK = "0123456789." + comma + period + hyphen;
var checkStr = objName;
var allValid = true;
var decPoints = 0;
var allNum = "";

for (i = 0;  i < checkStr.value.length;  i++)
{
ch = checkStr.value.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
if (ch != ",")
allNum += ch;
}
if (!allValid)
{	
alertsay = "Please enter only these values \""
alertsay = alertsay + checkOK + "\" in the Sort field."
alert(alertsay);
return (false);
}

// set the minimum and maximum
var chkVal = allNum;
var prsVal = parseInt(allNum);
if (chkVal != "" && !(prsVal >= minval && prsVal <= maxval))
{
alertsay = "Please enter a value greater than or "
alertsay = alertsay + "equal to \"" + minval + "\" and less than or "
alertsay = alertsay + "equal to \"" + maxval + "\" in the \"" + checkStr.name + "\" field."
alert(alertsay);
return (false);
}
}
//  End -->

<!--
function openWin() {
window.open('http://dibrokerage.edulence.com/validate.asp?UserID=#session.AgentID#&FirstName=#session.FirstName#&LastName=#session.LastName#&Company=#session.loggedinname#&Location=#session.Location#','newWin','toolbar=no,scrollbars=no,width=800,height=550')
}
//-->

<!-- Beginning of SAVE FORM GO TO NOTE/EMAIL Script
function saveformtonote(gpstatusautoid, gpautoid) {
	document.form1.action = 'http://www.disabilityquotes.com/gpstatusviewedit.cfm?RequestTimeOut=1200&GPStatusAutoID=' + gpstatusautoid;
	document.form1.submit();
	return false;
}
// END -->
