﻿

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}



function show3() {
tzOffset = -4;
theTime=setTimeout('dotime()',1000);
d = new Date();
dx = d.toGMTString();
dx = dx.substr(0,dx.length -3);
d.setTime(Date.parse(dx))
d.setHours(d.getHours() + tzOffset);

hr= d.getHours()+100;
mn= d.getMinutes()+100;
se= d.getSeconds()+100;
if(hr==100){hr=112;am_pm='am';}
else if(hr<112){am_pm='am';}
else if(hr==112){am_pm='pm';}
else if(hr>112){am_pm='pm';hr=(hr-12);}
tot=''+hr+mn+se;
document.hr1.src = 'images/dg' + tot.substring(1,2)+'.gif';
document.hr2.src = 'images/dg' + tot.substring(2,3)+'.gif';
document.mn1.src = 'images/dg' + tot.substring(4,5)+'.gif';
document.mn2.src = 'images/dg' + tot.substring(5,6)+'.gif';
document.ampm.src= 'images/dg' + am_pm+'.gif';
}

function show4() {
tzOffset = +8;
theTime=setTimeout('dotime()',1000);
d = new Date();
dx = d.toGMTString();
dx = dx.substr(0,dx.length -3);
d.setTime(Date.parse(dx))
d.setHours(d.getHours() + tzOffset);

hr= d.getHours()+100;
mn= d.getMinutes()+100;
se= d.getSeconds()+100;
if(hr==100){hr=112;am_pm='am';}
else if(hr<112){am_pm='am';}
else if(hr==112){am_pm='pm';}
else if(hr>112){am_pm='pm';hr=(hr-12);}
tot=''+hr+mn+se;
document.hr12.src = 'images/dg' + tot.substring(1,2)+'.gif';
document.hr22.src = 'images/dg' + tot.substring(2,3)+'.gif';
document.mn12.src = 'images/dg' + tot.substring(4,5)+'.gif';
document.mn22.src = 'images/dg' + tot.substring(5,6)+'.gif';
document.ampm2.src= 'images/dg' + am_pm+'.gif';
}

function show5() {
tzOffset = +1;
theTime=setTimeout('dotime()',1000);
d = new Date();
dx = d.toGMTString();
dx = dx.substr(0,dx.length -3);
d.setTime(Date.parse(dx))
d.setHours(d.getHours() + tzOffset);

hr= d.getHours()+100;
mn= d.getMinutes()+100;
se= d.getSeconds()+100;
if(hr==100){hr=112;am_pm='am';}
else if(hr<112){am_pm='am';}
else if(hr==112){am_pm='pm';}
else if(hr>112){am_pm='pm';hr=(hr-12);}
tot=''+hr+mn+se;
document.hr125.src = 'images/dg' + tot.substring(1,2)+'.gif';
document.hr225.src = 'images/dg' + tot.substring(2,3)+'.gif';
document.mn125.src = 'images/dg' + tot.substring(4,5)+'.gif';
document.mn225.src = 'images/dg' + tot.substring(5,6)+'.gif';
document.ampm25.src= 'images/dg' + am_pm+'.gif';
}

function show6() {
tzOffset = +10;
theTime=setTimeout('dotime()',1000);
d = new Date();
dx = d.toGMTString();
dx = dx.substr(0,dx.length -3);
d.setTime(Date.parse(dx))
d.setHours(d.getHours() + tzOffset);

hr= d.getHours()+100;
mn= d.getMinutes()+100;
se= d.getSeconds()+100;
if(hr==100){hr=112;am_pm='am';}
else if(hr<112){am_pm='am';}
else if(hr==112){am_pm='pm';}
else if(hr>112){am_pm='pm';hr=(hr-12);}
tot=''+hr+mn+se;
document.hr1257.src = 'images/dg' + tot.substring(1,2)+'.gif';
document.hr2257.src = 'images/dg' + tot.substring(2,3)+'.gif';
document.mn1257.src = 'images/dg' + tot.substring(4,5)+'.gif';
document.mn2257.src = 'images/dg' + tot.substring(5,6)+'.gif';
document.ampm257.src= 'images/dg' + am_pm+'.gif';
}

function GetCookie(name) { 

} 

function validate(frm) {
    //
    // Check the Email field to see if any characters were entered
    //
var found_it //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C1.length; i++)  { 
if (document.form1.C1[i].checked)  {

found_it = document.form1.C1[i].value //set found_it equal to checked button's value

} 

}

 if(found_it != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 1")
return false
} 
	
var found_it2 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C2.length; i++)  { 
if (document.form1.C2[i].checked)  {

found_it2 = document.form1.C2[i].value //set found_it equal to checked button's value

} 

}

 if(found_it2 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 2")
return false
} 

var found_it3 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C3.length; i++)  { 
if (document.form1.C3[i].checked)  {

found_it3 = document.form1.C3[i].value //set found_it equal to checked button's value

} 

}

 if(found_it3 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 3")
return false
} 


var found_it4 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C4.length; i++)  { 
if (document.form1.C4[i].checked)  {

found_it4 = document.form1.C4[i].value //set found_it equal to checked button's value

} 

}

 if(found_it4 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 4")
return false
} 

var found_it5 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C5.length; i++)  { 
if (document.form1.C5[i].checked)  {

found_it5 = document.form1.C5[i].value //set found_it equal to checked button's value

} 

}

 if(found_it5 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 5")
return false
} 

var found_it6 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C6.length; i++)  { 
if (document.form1.C6[i].checked)  {

found_it6 = document.form1.C6[i].value //set found_it equal to checked button's value

} 

}

 if(found_it6 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 6")
return false
} 

var found_it7 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C7.length; i++)  { 
if (document.form1.C7[i].checked)  {

found_it7 = document.form1.C7[i].value //set found_it equal to checked button's value

} 

}

 if(found_it7 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 7")
return false
} 
 
var found_it8 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C8.length; i++)  { 
if (document.form1.C8[i].checked)  {

found_it8 = document.form1.C8[i].value //set found_it equal to checked button's value

} 

}

 if(found_it8 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 8")
return false
}  
 
var found_it9 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C9.length; i++)  { 
if (document.form1.C9[i].checked)  {

found_it9 = document.form1.C9[i].value //set found_it equal to checked button's value

} 

}

 if(found_it9 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 9")
return false
} 
 
var found_it10 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C10.length; i++)  { 
if (document.form1.C10[i].checked)  {

found_it10 = document.form1.C10[i].value //set found_it equal to checked button's value

} 

}

 if(found_it10 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 10")
return false
}  
 
var found_it11 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C11.length; i++)  { 
if (document.form1.C11[i].checked)  {

found_it11 = document.form1.C11[i].value //set found_it equal to checked button's value

} 

}

 if(found_it11 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 11")
return false
} 

var found_it12 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C12.length; i++)  { 
if (document.form1.C12[i].checked)  {

found_it12 = document.form1.C12[i].value //set found_it equal to checked button's value

} 

}

 if(found_it12 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 12")
return false
} 

var found_it13 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C13.length; i++)  { 
if (document.form1.C13[i].checked)  {

found_it13 = document.form1.C13[i].value //set found_it equal to checked button's value

} 

}

 if(found_it13 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 13")
return false
} 

var found_it14 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C14.length; i++)  { 
if (document.form1.C14[i].checked)  {

found_it14 = document.form1.C14[i].value //set found_it equal to checked button's value

} 

}

 if(found_it14 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 14")
return false
} 

var found_it15 //initial value is null because we gave it no other value

for (var i=0; i<document.form1.C15.length; i++)  { 
if (document.form1.C15[i].checked)  {

found_it15 = document.form1.C15[i].value //set found_it equal to checked button's value

} 

}

 if(found_it15 != null){ //if found_it is NOT equal to null, a button HAS been checked

}
else{ 
alert("Please answer question 15")
return false
} 

  
}

function showhide (id) 
{ 
var style = document.getElementById(id).style 
if (style.display == "none") 
style.display = "inline"; 
else 
style.display = "none"; 
} 

function valButton(btn) {
    var cnt = -1;
    for (var i=btn.length-1; i > -1; i--) {
        if (btn[i].checked) {cnt = i; i = -1;}
    }
    if (cnt > -1) return btn[cnt].value;
    else return null;
}

matchHeight=function(){ 

     var divs,contDivs,maxHeight,divHeight,d; 

     // get all <div> elements in the document 

     divs=document.getElementsByTagName('div'); 

     contDivs=[]; 

     // initialize maximum height value 

     maxHeight=0; 

     // iterate over all <div> elements in the document 

     for(var i=0;i<divs.length;i++){ 

          // make collection with <div> elements with class attribute 'container' 

          if(/\bcontainer\b/.test(divs[i].className)){ 

                d=divs[i]; 

                contDivs[contDivs.length]=d; 

                // determine height for <div> element 

                if(d.offsetHeight){ 

                     divHeight=d.offsetHeight; 

                } 

                else if(d.style.pixelHeight){ 

                     divHeight=d.style.pixelHeight; 

                } 

                // calculate maximum height 

                maxHeight=Math.max(maxHeight,divHeight); 

          } 

     } 

     // assign maximum height value to all of container <div> elements 

     for(var i=0;i<contDivs.length;i++){ 

          contDivs[i].style.height=maxHeight+'px'; 

     } 

} 

// execute function when page loads 


function viewMenu(c)
{
    //alert(document.URL);
	document.link_form.m.value = document.URL;
	document.link_form.action="http://www.execusite.com/engine/tools/index.cfm?args=M9~5E~25~2A~5DJ~21~3AX~2AB~3AN~2B~40AFT14L~2CU~21UX8~2CD~3AR~40OIO~23YL~2BLQ~40W9~3B~21~2F~3EISJ6~3DZ86C~2CU~2D~0ABBX~3C6E5~5DK~3CY~3A7F~2AB4II~5F~5CZYBQ3X~29~24R~3E~3F~23~5FH~23~3BBIJ~5BL92K~260~20~20~0A&c=" + c;
	document.link_form.submit();
}
  
function viewCalc(c)
	{
	window.open("http://www.execusite.com/engine/tools/index.cfm?args=M9~5E~25~2A~5DJ~21~3AX~2AB~3AN~2B~40AC~25Q~28MLU~21UX8~2CD~3AR~40OIO~23YL~2BLQ~40W9~3B~21~2F~3EISJ6~3DZ8~28RI~3C6~0A~3AC~3A~2C~3BB~40ES~3EHN~21~40KB4M~29~3BOHLS~2C~27~28~29~23V~2FV1JXL~20~0A&c=" + c,"LarsonAllen","menubar=0,resizable=1,scrollbars=1");
	}


var remote = null;
function windows(url)
	{

		if(navigator.appName == "Microsoft Internet Explorer")
			{
			remote = window.open(url,"remote","width=450,height=700,resizable=yes,left=156,top=75,scrollbars=yes");
			}
		else
			{
			remote = window.open(url,"remote","width=450,height=700,resizable=yes,screenX=156,screenY=75,scrollbars=yes");
			}
		if(!(parseFloat(navigator.appVersion) < 3.0 && navigator.appName == "Microsoft Internet Explorer"))
			{
			remote.focus();
			}
	}