var xmlHttp;var xmlHttp2;var flag;var nm;function updateBrowse1(nm){flag=nm;if(flag=="1"){var str=document.getElementById("membershipid2").value;var url="ajax4.php?membershipid="+str}
if(flag=="2"){var str=document.getElementById("manid").value;var url="ajax1.php?manid="+str}
if(flag=="3"){var str=document.getElementById("typeid").value;var url="aircraftajax2.php?typeid="+str}
xmlHttp=GetXmlHttpObject(stateChanged5)
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function stateChanged5(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var results;results=xmlHttp.responseText.split(",");if(flag=="1"){var obj=document.getElementById("optionid2");}
if(flag=="2"){var obj=document.getElementById("modid");}
if(flag=="3"){var obj=document.getElementById("manid");}
var len;len=obj.length;while(len>0){len=len-1;obj.options[len]=null;}
if(flag=="1"){obj.options[len]=new Option("Select Add On Duration","0");}
if(flag=="2"){obj.options[len]=new Option("Select Aircraft Model","0");}
if(flag=="3"){obj.options[len]=new Option("Select Aircraft Manufacturer","0");}
len=obj.length;for(i=0;i<results.length;i++){len=obj.length;result_array=results[i].split("=");obj.options[len]=new Option(result_array[0],result_array[1]);}}}
function checkMaxSelected(select,maxSelected){if(!select.storeSelections){select.storeSelections=new Array(select.options.length);select.selectedOptions=0;}
for(var i=0;i<select.options.length;i++){if(select.options[i].selected&&!select.storeSelections[i]){if(select.selectedOptions<maxSelected){select.storeSelections[i]=true;select.selectedOptions++;}
else{alert('The last selection will be discarded. The limit of '+maxSelected
+' has been reached.');select.options[i].selected=false;}}
else if(!select.options[i].selected&&select.storeSelections[i]){select.storeSelections[i]=false;select.selectedOptions--;}}}
function limitText(limitField,limitCount,limitNum){if(limitField.value.length>limitNum){limitField.value=limitField.value.substring(0,limitNum);}else{limitCount.value=limitNum-limitField.value.length;}}
function updateBrowse(nm){flag=nm;if(flag=="1"){var str=document.getElementById("membershipid").value;var url="ajaxaircraft.php?membershipid="+str
var url2="ajaxaircraft3.php?membershipid="+str}
if(flag=="2"){var str=document.getElementById("typeid").value;var str2=document.getElementById("manid").value;var url="aircraftajax1.php?manid="+str2+"&typeid="+str}
xmlHttp=GetXmlHttpObject(stateChanged3)
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
xmlHttp2=GetXmlHttpObject(stateChanged4)
xmlHttp2.open("GET",url2,true)
xmlHttp2.send(null)}
function stateChanged3(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var results;results=xmlHttp.responseText.split(",");if(flag=="1"){var obj=document.getElementById("optionid");}
if(flag=="2"){var obj=document.getElementById("modid");}
if(flag=="3"){var obj=document.getElementById("manid");}
var len;len=obj.length;while(len>0){len=len-1;obj.options[len]=null;}
if(flag=="1"){obj.options[len]=new Option("Select Payment Option","0");}
if(flag=="2"){obj.options[len]=new Option("Select Aircraft Model","0");}
if(flag=="3"){obj.options[len]=new Option("Select Aircraft Manufacturer","0");}
len=obj.length;for(i=0;i<results.length;i++){len=obj.length;result_array=results[i].split("=");obj.options[len]=new Option(result_array[0],result_array[1]);}}}
function stateChanged4(){if(xmlHttp2.readyState==4||xmlHttp2.readyState=="complete"){var results;results=xmlHttp2.responseText.split(",");if(flag=="1"){var obj=document.getElementById("membershipid2");}
if(flag=="2"){var obj=document.getElementById("modid");}
if(flag=="3"){var obj=document.getElementById("manid");}
var len;len=obj.length;while(len>0){len=len-1;obj.options[len]=null;}
if(flag=="1"){obj.options[len]=new Option("Select Add On Product","0");}
if(flag=="2"){obj.options[len]=new Option("Select Aircraft Model","0");}
if(flag=="3"){obj.options[len]=new Option("Select Aircraft Manufacturer","0");}
len=obj.length;for(i=0;i<results.length;i++){len=obj.length;result_array=results[i].split("=");obj.options[len]=new Option(result_array[0],result_array[1]);}}}
var xmlHttp;var flag;function updateModel(nm){flag=nm;if(flag=="1"){var str=document.getElementById("manid").value;var url="ajax.php?manid="+str}
xmlHttp=GetXmlHttpObject(stateChanged)
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function stateChanged(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var results;results=xmlHttp.responseText.split(",");if(flag=="1"){var obj=document.getElementById("modid");}
var len;len=obj.length;while(len>0){len=len-1;obj.options[len]=null;}
if(flag=="1"){obj.options[len]=new Option("Any Model","0");}
len=obj.length;for(i=0;i<results.length;i++){len=obj.length;result_array=results[i].split("=");obj.options[len]=new Option(result_array[0],result_array[1]);}}}
function GetXmlHttpObject(handler){var objXmlHttp=null
if(navigator.userAgent.indexOf("Opera")>=0){alert("This example doesn't work in Opera")
return}
if(navigator.userAgent.indexOf("MSIE")>=0){var strName="Msxml2.XMLHTTP"
if(navigator.appVersion.indexOf("MSIE 5.5")>=0){strName="Microsoft.XMLHTTP"}
try{objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler
return objXmlHttp}
catch(e){alert("Error. Scripting for ActiveX might be disabled")
return}}
if(navigator.userAgent.indexOf("Mozilla")>=0){objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler
return objXmlHttp}}
function checkAircraft()
{if(document.aircraft.typeid.value=="")
{alert('Please select your aircraft type.');document.aircraft.typeid.focus();return false;}
if(document.aircraft.manid.value=="")
{alert('Please select your aircraft manufacturer.');document.aircraft.manid.focus();return false;}
if(document.aircraft.modid.value=="")
{alert('Please select your aircraft model.');document.aircraft.modid.focus();return false;}
if(document.aircraft.serialno.value=="")
{alert('Please enter your aircraft serial no.');document.aircraft.serialno.focus();return false;}
if(document.aircraft.regno.value=="")
{alert('Please enter your aircraft registration no.');document.aircraft.regno.focus();return false;}
if(document.aircraft.aircraftyear.value=="")
{alert('Please enter your aircraft year.');document.aircraft.aircraftyear.focus();return false;}
if(document.aircraft.aircraftstatus.value=="")
{alert('Please enter your aircraft status.');document.aircraft.aircraftstatus.focus();return false;}
if(document.aircraft.locationcity.value=="")
{alert('Please enter your aircraft location city.');document.aircraft.locationcity.focus();return false;}
if(document.aircraft.locationstate.value=="")
{alert('Please enter your aircraft location state.');document.aircraft.locationstate.focus();return false;}
if(document.aircraft.locationcountry.value=="")
{alert('Please enter your aircraft location country.');document.aircraft.locationcountry.focus();return false;}
if(document.aircraft.locationzip.value=="")
{alert('Please enter your aircraft location zip code.');document.aircraft.locationzip.focus();return false;}
return true();}
function checkAircraft2()
{if(document.aircraft.aircraftstatus.value=="")
{alert('Please enter your aircraft status.');document.aircraft.aircraftstatus.focus();return false;}
if(document.aircraft.locationcity.value=="")
{alert('Please enter your aircraft location city.');document.aircraft.locationcity.focus();return false;}
if(document.aircraft.locationstate.value=="")
{alert('Please enter your aircraft location state.');document.aircraft.locationstate.focus();return false;}
if(document.aircraft.locationcountry.value=="")
{alert('Please enter your aircraft location country.');document.aircraft.locationcountry.focus();return false;}
if(document.aircraft.locationzip.value=="")
{alert('Please enter your aircraft location zip code.');document.aircraft.locationzip.focus();return false;}
return true();}
function checkPayment()
{if(document.payment.payment_method.value=="")
{alert('Please select your payment method.');document.payment.payment_method.focus();return false;}
if(document.payment.cardname.value=="")
{alert('Please the name on your credit card.');document.payment.cardname.focus();return false;}
if(document.payment.cardno.value=="")
{alert('Please enter your credit card number.');document.payment.cardno.focus();return false;}
if(document.payment.exp.value=="")
{alert('Please enter your credit card expiration date.');document.payment.exp.focus();return false;}
if(document.payment.cvv.value=="")
{alert('Please enter your credit card security code.');document.payment.cvv.focus();return false;}
if(document.payment.billingaddress.value=="")
{alert('Please enter your billing address.');document.payment.billingaddress.focus();return false;}
if(document.payment.billingzip.value=="")
{alert('Please enter your billing zip code.');document.payment.billingzip.focus();return false;}
return true();}
function checkblank()
{if(document.newsletter.firstname.value=="")
{alert('Please enter your first name.');document.newsletter.firstname.focus();return false;}
if(document.newsletter.lastname.value=="")
{alert('Please enter your first name.');document.newsletter.lastname.focus();return false;}
if(document.newsletter.email.value.indexOf("@")<0)
{alert('Your email address format is incorrect.');document.newsletter.email.focus();return false;}
if(document.newsletter.email.value.indexOf(".")<0)
{alert('Your email address format is incorrect.');document.newsletter.email.focus();return false;}
if((document.newsletter.email.value)!=(document.newsletter.email2.value))
{alert('Your emails do not match.');document.newsletter.email.focus();return false;}
if(document.newsletter.terms.checked==false)
{alert('You must agree to the terms and conditions.');document.newsletter.terms.focus();return false;}
return true;}
function checkblank1()
{if(document.register.username.value=="")
{alert('Please enter a username.');document.register.username.focus();return false;}
var myRegxp=/([a-zA-Z0-9_-]+)$/;if(myRegxp.test(document.register.username.value)==false)
{alert('Username allows alphanumeric characters only.');document.register.username.focus();return false;}
if(myRegxp.test(document.register.password.value)==false)
{alert('Password allows alphanumeric characters only.');document.register.password.focus();return false;}
if(document.register.password.value=="")
{alert('Please enter a password.');document.register.password.focus();return false;}
if(document.register.password2.value=="")
{alert('Please enter a password.');document.register.password2.focus();return false;}
if((document.register.password.value)!=(document.register.password2.value))
{alert('Your passwords do not match.');document.register.password.focus();return false;}
if(document.register.firstname.value=="")
{alert('Please enter your first name.');document.register.firstname.focus();return false;}
if(document.register.lastname.value=="")
{alert('Please enter your last name.');document.register.lastname.focus();return false;}
if(document.register.address1.value=="")
{alert('Please enter your address.');document.register.address1.focus();return false;}
if(document.register.city.value=="")
{alert('Please enter your city.');document.register.city.focus();return false;}
if(document.register.zip.value=="")
{alert('Please enter your zip or postal code.');document.register.zip.focus();return false;}
if(document.register.country.value=="")
{alert('Please select your country.');return false;}
if(document.register.country.value=="United States")
{if(document.register.state.value=="")
{alert('Please select your state.');return false;}}
if(document.register.email.value.indexOf("@")<0)
{alert('Your email address format is incorrect.');document.register.email.focus();return false;}
if(document.register.email.value.indexOf(".")<0)
{alert('Your email address format is incorrect.');document.register.email.focus();return false;}
if((document.register.email.value)!=(document.register.email2.value))
{alert('Your emails do not match.');document.register.email.focus();return false;}
if(document.register.terms.checked==false)
{alert('You must agree to the terms and conditions.');return false;}else{return true;}
if(document.register.terms.checked==true)
return true;}
function checkblank2()
{if(document.myhangar.firstname.value=="")
{alert('Please enter your first name.');document.myhangar.firstname.focus();return false;}
if(document.myhangar.lastname.value=="")
{alert('Please enter your last name.');document.myhangar.lastname.focus();return false;}
if(document.myhangar.company.value=="")
{alert('Please enter your company name.');document.myhangar.company.focus();return false;}
if(document.myhangar.email.value.indexOf("@")<0)
{alert('Your email address format is incorrect.');document.myhangar.email.focus();return false;}
if(document.myhangar.email.value.indexOf(".")<0)
{alert('Your email address format is incorrect.');document.myhangar.email.focus();return false;}
if(document.myhangar.address1.value=="")
{alert('Please enter your address.');document.myhangar.address1.focus();return false;}
if(document.myhangar.city.value=="")
{alert('Please enter your city.');document.myhangar.city.focus();return false;}
if(document.myhangar.zip.value=="")
{alert('Please enter your zip or postal code.');document.myhangar.zip.focus();return false;}
if(document.myhangar.country.value=="")
{alert('Please select your country.');return false;}
if(document.register.myhangar.value=="United States")
{if(document.myhangar.state.value=="")
{alert('Please select your state.');return false;}}
if(document.myhangar.phone.value=="")
{alert('Please enter your phone number.');document.myhangar.phone.focus();return false;}
return true;}
function MM_preloadImages(){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_swapImgRestore(){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 MM_findObj(n,d){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(){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 ISnumeric(argNum)
{if(argNum=="")
{return false;}
var valid="0123456789X"
var ok="yes";var temp;for(var i=0;i<argNum.length;i++)
{temp=""+argNum.substring(i,i+1);if(valid.indexOf(temp)=="-1")
{return false;break;}}
return true;}
function validateEmail(email)
{if(email==""){return false;}
badStuff=";:/,' \"\\";for(i=0;i<badStuff.length;i++){badCheck=badStuff.charAt(i)
if(email.indexOf(badCheck,0)!=-1){return false;}}
posOfAtSign=email.indexOf("@",1)
if(posOfAtSign==-1){return false;}
if(email.indexOf("@",posOfAtSign+1)!=-1){return false;}
posOfPeriod=email.indexOf(".",posOfAtSign)
if(posOfPeriod==-1){return false;}
if(posOfPeriod+2>email.length){return false;}
return true}
function emailCheck(emailStr)
{var checkTLD=1;var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s"+specialChars+"\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars+'+';var word="("+atom+"|"+quotedUser+")";var userPat=new RegExp("^"+word+"(\\."+word+")*$");var domainPat=new RegExp("^"+atom+"(\\."+atom+")*$");var matchArray=emailStr.match(emailPat);if(matchArray==null)
{return false;}
var user=matchArray[1];var domain=matchArray[2];for(i=0;i<user.length;i++)
{if(user.charCodeAt(i)>127)
{return false;}}
for(i=0;i<domain.length;i++)
{if(domain.charCodeAt(i)>127)
{return false;}}
if(user.match(userPat)==null)
{return false;}
var IPArray=domain.match(ipDomainPat);if(IPArray!=null)
{for(var i=1;i<=4;i++)
{if(IPArray[i]>255)
{return false;}}
return true;}
var atomPat=new RegExp("^"+atom+"$");var domArr=domain.split(".");var len=domArr.length;for(i=0;i<len;i++)
{if(domArr[i].search(atomPat)==-1)
{return false;}}
if(checkTLD&&domArr[domArr.length-1].length!=2&&domArr[domArr.length-1].search(knownDomsPat)==-1)
{return false;}
if(len<2)
{return false;}
return true;}
function verify(msg)
{if(confirm(msg))
return true;else
return false;}
function PopupPic(img_src)
{window.open("large.php?imgsrc="+img_src,"mydoc","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,maximize=0");}
function winBRopen(theURL,height,width)
{var winleft=(screen.width-500)/2;var winUp=(screen.height-500)/4;winProp='width='+width+',height='+height+',left='+winleft+',top='+winUp+',scrollbars=yes,resizable=yes,toolbar=0,menubar=0';Win=window.open(theURL,'',winProp)
if(parseInt(navigator.appVersion)>=4)
{Win.window.focus();}}
function chk_registration()
{frm=document.user_registration;if(frm.username.value=='')
{alert("Please specify your username!");frm.username.focus();return false;}
if(frm.password.value=='')
{alert("Please specify the password!");frm.password.focus();return false;}
if(frm.firstname.value=='')
{alert("Please specify the first name!");frm.firstname.focus();return false;}
if(frm.lastname.value=='')
{alert("Please specify the last name!");frm.lastname.focus();return false;}
if(frm.company.value=='')
{alert("Please specify the company name!");frm.company.focus();return false;}
if(frm.bphone.value=='')
{alert("Please specify the business phone!");frm.bphone.focus();return false;}
if(frm.bphone.value!='')
{if(!ISnumeric(frm.bphone.value))
{alert("Please input a valid phone number.");frm.bphone.focus();return false;}}
if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}}
function chk_loginVal()
{frm=document.frmlogin;if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}
if(frm.password.value=='')
{alert("Please specify the password!");frm.password.focus();return false;}
frm.submit();}
function chk_forgotVal()
{frm=document.frmforgot;if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}}
function clearField(frm)
{if((frm.value=="XXX")||(frm.value=="XXXX"))
{frm.value="";frm.focus();}}
function checksubuser()
{if(document.subuser.relationid.value=='')
{alert("Please select associated membership.");document.subuser.firstname.focus();return false;}
if(document.subuser.username.value=='')
{alert("Please enter a username.");document.subuser.username.focus();return false;}
if(document.subuser.firstname.value=='')
{alert("Please enter the firstname.");document.subuser.firstname.focus();return false;}
if(document.subuser.lastname.value=='')
{alert("Please enter a lastname.");document.subuser.lastname.focus();return false;}
return true;}
function chk_myacount()
{frm=document.frmMyAccountEdit;if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}
if(frm.password.value=='')
{alert("Please specify the password!");frm.password.focus();return false;}
if(frm.title.value=='')
{alert("Please specify the title!");frm.title.focus();return false;}
if(frm.company.value=='')
{alert("Please specify the company name!");frm.company.focus();return false;}
if(frm.company_address.value=='')
{alert("Please specify the company address!");frm.company_address.focus();return false;}
if(frm.city.value=='')
{alert("Please specify the company city!");frm.city.focus();return false;}
if(frm.zip.value=='')
{alert("Please specify the zipcode!");frm.zip.focus();return false;}
if(frm.country.value=='')
{alert("Please specify the country!");frm.country.focus();return false;}
if(frm.phone1.value!='')
{if(!ISnumeric(frm.phone1.value))
{alert("Please input a valid phone number.");frm.phone1.focus();return false;}}
if(frm.phone2.value!='')
{if(!ISnumeric(frm.phone2.value))
{alert("Please input a valid phone number.");frm.phone2.focus();return false;}}
if(frm.phone3.value!='')
{if(!ISnumeric(frm.phone3.value))
{alert("Please input a valid phone number.");frm.phone3.focus();return false;}}
if(frm.phone4.value!='')
{if(!ISnumeric(frm.phone4.value))
{alert("Please input a valid phone number.");frm.phone4.focus();return false;}}
if(frm.badge_name.value=='')
{alert("Please specify the name on badge!");frm.badge_name.focus();return false;}
if(frm.company_badge_name.value=='')
{alert("Please specify the comapany on badge!");frm.company_badge_name.focus();return false;}}
function chk_EventRegis(val)
{frm=document.event_registtration;if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}
if(frm.fname.value=='')
{alert("Please specify the first name!");frm.fname.focus();return false;}
if(frm.lname.value=='')
{alert("Please specify the last name!");frm.lname.focus();return false;}
if(frm.phone1.value!='')
{if(!ISnumeric(frm.phone1.value))
{alert("Please input a valid phone number.");frm.phone1.focus();return false;}}
if(frm.phone2.value!='')
{if(!ISnumeric(frm.phone2.value))
{alert("Please input a valid phone number.");frm.phone2.focus();return false;}}
if(frm.phone3.value!='')
{if(!ISnumeric(frm.phone3.value))
{alert("Please input a valid phone number.");frm.phone3.focus();return false;}}
if(frm.phone4.value!='')
{if(!ISnumeric(frm.phone4.value))
{alert("Please input a valid phone number.");frm.phone4.focus();return false;}}
if(frm.badge_name.value=='')
{alert("Please specify the name on badge!");frm.badge_name.focus();return false;}
if(frm.company_badge_name.value=='')
{alert("Please specify the comapany on badge!");frm.company_badge_name.focus();return false;}
if(val==1)
{if(frm.ccfname.value=='')
{alert("Please specify the credit card first name!");frm.ccfname.focus();return false;}
if(frm.cclname.value=='')
{alert("Please specify the credit card last name!");frm.cclname.focus();return false;}
if(frm.ccnumber.value=='')
{alert("Please specify the credit card number!");frm.ccnumber.focus();return false;}
if(frm.ccexpdate.value=='')
{alert("Please specify the credit card expiry date!");frm.ccexpdate.focus();return false;}
if(frm.csv.value=='')
{alert("Please specify the csv number!");frm.csv.focus();return false;}}}
function chk_searchuser()
{if(document.searchform.searchfor.value=='')
{alert("Please specify the text for search.");document.searchform.searchfor.focus();return false;}}
function loadContent(id){$("#contentArea").load("home_search.php?o="+id+"");}
function swapEdform()
{var nm;var nm=document.getElementById("formtype").value;var obj2=document.getElementById("college");var obj3=document.getElementById("trade");var obj4=document.getElementById("military");var obj5=document.getElementById("other");if(nm==1)
{obj2.style.visibility="visible";obj2.style.display="";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";}
if(nm==2)
{obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="visible";obj3.style.display="";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";}
if(nm==3)
{obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="visible";obj4.style.display="";obj5.style.visibility="hidden";obj5.style.display="none";}
if(nm==4)
{obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="visible";obj5.style.display="";}
if(nm==0)
{obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";}}
function startList(){if(document.all&&document.getElementById){if(document.getElementById("nav")){navRoot=document.getElementById("nav");for(i=0;i<navRoot.childNodes.length;i++){node=navRoot.childNodes[i];if(node.nodeName=="LI"){node.onmouseover=function(){this.className+=" over";}
node.onmouseout=function(){this.className=this.className.replace(" over","");}}}}}}
startList();
function swapMsg(nm)
{var nm;var obj1=document.getElementById("content1");var obj2=document.getElementById("content2");var obj3=document.getElementById("content3");var obj4=document.getElementById("content4");if(nm==1)
{obj1.style.visibility="visible";obj1.style.display="";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";}
if(nm==2)
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="visible";obj2.style.display="";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";}
if(nm==3)
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="visible";obj3.style.display="";obj4.style.visibility="hidden";obj4.style.display="none";}
if(nm==4)
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="visible";obj4.style.display="";}}
function swapTopics(nm,objid)
{var nm;var obj1=document.getElementById("A");var obj2=document.getElementById("B");var obj3=document.getElementById("C");var obj4=document.getElementById("D");var obj5=document.getElementById("E");var obj6=document.getElementById("F");var obj7=document.getElementById("G");var obj8=document.getElementById("H");var obj9=document.getElementById("I");var obj10=document.getElementById("J");var obj11=document.getElementById("K");var obj12=document.getElementById("L");var obj13=document.getElementById("M");var obj14=document.getElementById("N");var obj15=document.getElementById("O");var obj16=document.getElementById("P");var obj17=document.getElementById("Q");var obj18=document.getElementById("R");var obj19=document.getElementById("S");var obj20=document.getElementById("T");var obj21=document.getElementById("U");var obj22=document.getElementById("V");var obj23=document.getElementById("W");var obj24=document.getElementById("X");var obj25=document.getElementById("Y");var obj26=document.getElementById("Z");var objName;for(x=1;x<=26;x++){objName=x+'l';document.getElementById(objName).className="number";}
if(document.getElementById(objid))document.getElementById(objid).className="number2";if(nm=="1")
{obj1.style.visibility="visible";obj1.style.display="";obj1.style.className="";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="2")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="visible";obj2.style.display="";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="3")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="visible";obj3.style.display="";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="4")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="visible";obj4.style.display="";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="5")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="visible";obj5.style.display="";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="6")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="visible";obj6.style.display="";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="7")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="visible";obj7.style.display="";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="8")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="visible";obj8.style.display="";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="9")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="visible";obj9.style.display="";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="10")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="visible";obj10.style.display="";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="11")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="visible";obj11.style.display="";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="12")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="visible";obj12.style.display="";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="13")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="visible";obj13.style.display="";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="14")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="visible";obj14.style.display="";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="15")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="visible";obj15.style.display="";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="16")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="visible";obj16.style.display="";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="17")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="visible";obj17.style.display="";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="18")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="visible";obj18.style.display="";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="19")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="visible";obj19.style.display="";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="20")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="visible";obj20.style.display="";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="21")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="visible";obj21.style.display="";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="22")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="visible";obj22.style.display="";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="23")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="visible";obj23.style.display="";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="24")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="visible";obj24.style.display="";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="25")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="visible";obj25.style.display="";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="26")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="visible";obj26.style.display="";}}
function checkBaby4()
{if(document.advancedbabysearch.begin.value=="")
{if(document.advancedbabysearch.end.value=="")
{alert('Please enter a search value.');document.advancedbabysearch.begin.focus();return false;}}}
function checkBaby3()
{if(document.quickbabysearch.search.value=="")
{alert('Please enter a search value.');document.quickbabysearch.search.focus();return false;}}
function checkBaby2()
{if(document.babysearch2.NAME.value=="")
{alert('Please enter a search value.');document.babysearch2.NAME.focus();return false;}}
function checkBaby()
{if(document.babysearch.NAME.value=="")
{alert('Please enter a search value.');document.babysearch.NAME.focus();return false;}}
function copyBilling()
{if(donation.billing.checked)
{document.donation.billingaddress1.value=document.donation.address1.value;document.donation.billingaddress2.value=document.donation.address2.value;document.donation.billingzip.value=document.donation.zip.value;}}
function checkDonation()
{myOption=-1;for(i=0;i<donation.giftfrom.length;i++)
{if(donation.giftfrom[i].checked)
{myOption=i;}}
if(myOption==-1)
{alert("You must select individual or corporation.");return false;}
if(donation.giftfrom[myOption].value=='individual')
{if(donation.firstname.value=="")
{alert('Please enter your first name.');donation.firstname.focus();return false;}
if(donation.lastname.value=="")
{alert('Please enter your last name.');donation.lastname.focus();return false;}}
if(donation.giftfrom[myOption].value=='corporate')
{if(donation.corporation.value=="")
{alert('Please enter your corporation name.');donation.corporation.focus();return false;}}
myOption2=-1;for(b=0;b<donation.joint.length;b++)
{if(donation.joint[b].checked)
{myOption2=b;}}
if(myOption2==-1)
{alert("You must a joint donation option.");return false;}
if(donation.email.value=="")
{alert('Please enter your email address.');donation.email.focus();return false;}
if(!emailCheck(donation.email.value))
{alert("Email is in an invalid format - Please RE-Enter");donation.email.focus();return false;}
if(document.donation.phone.value=="")
{alert('Please enter your phone number.');document.donation.phone.focus();return false;}
if(document.donation.address1.value=="")
{alert('Please enter your address.');document.donation.address1.focus();return false;}
if(document.donation.city.value=="")
{alert('Please enter the billing city.');document.donation.city.focus();return false;}
if(document.donation.state.value=="")
{alert('Please select the billing state.');document.donation.city.focus();return false;}
if(document.donation.zip.value=="")
{alert('Please enter the billing zip code.');document.donation.zip.focus();return false;}
if(document.donation.country.value=="")
{alert('Please select your country.');document.donation.zip.focus();return false;}
myOption3=-1;for(c=0;c<donation.giftfor.length;c++)
{if(donation.giftfor[c].checked)
{myOption3=c;}}
if(myOption3==-1)
{alert("You must designate the use of your gift.");return false;}
if(donation.giftfor[myOption].value=='researchspecific')
{if(document.donation.otherprogram.value=="")
{alert('Please enter the program name.');document.donation.otherprogram.focus();return false;}}
myOption4=-1;for(d=0;d<donation.giftamt.length;d++)
{if(donation.giftamt[d].checked)
{myOption4=d;}}
if(myOption4==-1)
{alert("You must designate the amount of your gift.");return false;}
if(donation.otheramount[myOption].value=='amount')
{if(document.donation.otheramount.value=="")
{alert('Please enter the program name.');document.donation.otheramount.focus();return false;}}
if(document.donation.ccno.value=="")
{alert('Please enter your credit card number.');document.donation.ccno.focus();return false;}
if(document.donation.expdate.value=="")
{alert('Please enter your credt card expiration date.');document.donation.expdate.focus();return false;}
if(document.donation.cvv.value=="")
{alert('Please enter your credit card security code.');document.donation.cvv.focus();return false;}
donation.submit();}
function checkPayment()
{if(document.billinginfo.firstname.value=="")
{alert('Please enter the billing first name.');document.billinginfo.firstname.focus();return false;}
if(document.billinginfo.lastname.value=="")
{alert('Please enter the billing last name.');document.billinginfo.lastname.focus();return false;}
if(document.billinginfo.address.value=="")
{alert('Please enter the billing address.');document.billinginfo.address.focus();return false;}
if(document.billinginfo.city.value=="")
{alert('Please enter the billing city.');document.billinginfo.city.focus();return false;}
if(document.billinginfo.state.value=="")
{alert('Please select the billing state.');document.billinginfo.city.focus();return false;}
if(document.billinginfo.zip.value=="")
{alert('Please enter the billing zip code.');document.billinginfo.zip.focus();return false;}
if(document.billinginfo.phone.value=="")
{alert('Please enter the billing phone number.');document.billinginfo.phone.focus();return false;}
if(document.billinginfo.email.value=="")
{alert('Please enter your email address.');document.billinginfo.email.focus();return false;}
if(!emailCheck(billinginfo.email.value))
{alert("Email is in an invalid format - Please RE-Enter");billinginfo.email.focus();return false;}
if(document.billinginfo.ccno.value=="")
{alert('Please enter your credit card number.');document.billinginfo.ccno.focus();return false;}
if(document.billinginfo.expdate.value=="")
{alert('Please enter your credt card expiration date.');document.billinginfo.expdate.focus();return false;}
if(document.billinginfo.cvv.value=="")
{alert('Please enter your credit card security code.');document.billinginfo.cvv.focus();return false;}
return true();}
function checkEcard()
{if(document.ecard.patientname.value=="")
{alert('Please enter the patient\'s name.');document.ecard.patientname.focus();return false;}
if(document.ecard.fromemail.value=="")
{alert('Please enter your email address.');document.ecard.fromemail.focus();return false;}}
function careersPer()
{if(document.personalinfo.lastname.value=="")
{alert('Please enter your lastname.');document.personalinfo.lastname.focus();return false;}
if(document.personalinfo.firstname.value=="")
{alert('Please enter your firstname.');document.personalinfo.firstname.focus();return false;}}
function copyEm()
{if(contact.same.checked)
{document.contact.kname.value=document.contact.emname.value;document.contact.krelation.value=document.contact.emrelation.value;document.contact.kaddress1.value=document.contact.emaddress1.value;document.contact.kaddress2.value=document.contact.emaddress2.value;document.contact.kcity.value=document.contact.emcity.value;document.contact.kstate.value=document.contact.emstate.value;document.contact.kzip.value=document.contact.emzip.value;document.contact.kphone.value=document.contact.emphone.value;document.contact.kwkphone.value=document.contact.emwkphone.value;}}
function valbutton(thisform){myOption=-1;for(i=thisform.prev.length-1;i>-1;i--){if(thisform.prev[i].checked){myOption=i;i=-1;}}
if(myOption==-1){alert("You must select an answer.");return false;}
if(thisform.prev[myOption].value=='y');{myOption=-1;for(i=thisform.contactchange.length-1;i>-1;i--){if(thisform.contactchange[i].checked){myOption=i;i=-1;}}
if(myOption==-1){alert("You must select an answer.");return false;}}
thisform.submit();}
function checkPatient()
{if(document.patientinfo.firstname.value=="")
{alert('Please enter your firstname.');document.patientinfo.firstname.focus();return false;}
if(document.patientinfo.lastname.value=="")
{alert('Please enter your lastname.');document.patientinfo.lastname.focus();return false;}
if(document.patientinfo.marital_status.value=="")
{alert('Please select your marital status.');document.patientinfo.lastname.focus();return false;}
if(document.patientinfo.race.value=="")
{alert('Please enter your race.');document.patientinfo.race.focus();return false;}
if(document.patientinfo.month.value=="")
{alert('Please select your birth month.');document.patientinfo.race.focus();return false;}
if(document.patientinfo.day.value=="")
{alert('Please select your birth day.');document.patientinfo.race.focus();return false;}
if(document.patientinfo.year.value=="")
{alert('Please select your birth year.');document.patientinfo.race.focus();return false;}
if(document.patientinfo.address1.value=="")
{alert('Please enter street address.');document.patientinfo.address1.focus();return false;}
if(document.patientinfo.city.value=="")
{alert('Please enter city.');document.patientinfo.city.focus();return false;}
if(document.patientinfo.state.value=="")
{alert('Please enter your state.');document.patientinfo.address1.focus();return false;}
if(document.patientinfo.zip.value=="")
{alert('Please enter your zip code.');document.patientinfo.zip.focus();return false;}
if(document.patientinfo.phone.value=="")
{alert('Please enter your phone number.');document.patientinfo.phone.focus();return false;}
if(document.patientinfo.employer.value=="")
{alert('Please enter employer.');document.patientinfo.employer.focus();return false;}
if(document.patientinfo.eaddress1.value=="")
{alert('Please enter your employer street address.');document.patientinfo.eaddress1.focus();return false;}
if(document.patientinfo.ecity.value=="")
{alert('Please enter city.');document.patientinfo.ecity.focus();return false;}
if(document.patientinfo.state.value=="")
{alert('Please enter your employer state.');document.patientinfo.eaddress1.focus();return false;}
if(document.patientinfo.ezip.value=="")
{alert('Please enter your employer zip code.');document.patientinfo.ezip.focus();return false;}
if(document.patientinfo.ephone.value=="")
{alert('Please enter your employer phone number.');document.patientinfo.ephone.focus();return false;}
return(patientinfo.action='patient_registration.php?pageid=false&frompageid=otherskills&link_id=124&tertiary=true');}
function checkContact()
{if(document.contact.emname.value=="")
{alert('Please enter contact name.');document.contact.emname.focus();return false;}
if(document.contact.emrelation.value=="")
{alert('Please enter relationship to patient.');document.contact.emrelation.focus();return false;}
if(document.contact.emaddress1.value=="")
{alert('Please enter contact address.');document.contact.emaddress1.focus();return false;}
if(document.contact.emcity.value=="")
{alert('Please enter contact city.');document.contact.emcity.focus();return false;}
if(document.contact.emstate.value=="")
{alert('Please select contact state.');document.contact.emcity.focus();return false;}
if(document.contact.emzip.value=="")
{alert('Please enter contact zip code.');document.contact.emzip.focus();return false;}
if(document.contact.emphone.value=="")
{alert('Please enter contact phone.');document.contact.emphone.focus();return false;}
if(document.contact.emwkphone.value=="")
{alert('Please enter contact work phone.');document.contact.emwkphone.focus();return false;}
if(document.contact.kname.value=="")
{alert('Please contact name.');document.contact.kname.focus();return false;}
if(document.contact.krelation.value=="")
{alert('Please enter relationship to patient.');document.contact.krelation.focus();return false;}
if(document.contact.kaddress1.value=="")
{alert('Please enter contact address.');document.contact.kaddress1.focus();return false;}
if(document.contact.kcity.value=="")
{alert('Please enter contact city.');document.contact.kcity.focus();return false;}
if(document.contact.kstate.value=="")
{alert('Please select contact state.');document.contact.kcity.focus();return false;}
if(document.contact.kzip.value=="")
{alert('Please enter contact zip code.');document.contact.kzip.focus();return false;}
if(document.contact.kphone.value=="")
{alert('Please enter contact phone.');document.contact.kphone.focus();return false;}
if(document.contact.kwkphone.value=="")
{alert('Please enter contact work phone.');document.contact.kwkphone.focus();return false;}
return(contact.action='patient_registration.php?pageid=false&frompageid=general&link_id=124&tertiary=true');}
function checkInsurance()
{if(document.references.ins1address1.value=="")
{alert('Please enter the insurance company address.');document.references.ins1address1.focus();return false;}
if(document.references.ins1city.value=="")
{alert('Please enter the insurance company city.');document.references.ins1city.focus();return false;}
if(document.references.ins1state.value=="")
{alert('Please select insurance company state.');document.references.ins1city.focus();return false;}
if(document.references.ins1zip.value=="")
{alert('Please enter insurance company zip code.');document.references.ins1zip.focus();return false;}
return(references.action='patient_registration.php?skip=true&pageid=false&frompageid=references&link_id=124&tertiary=true');}
function swapPatient(nm)
{var nm;var obj1=document.getElementById("1");var obj2=document.getElementById("2");if(nm==1)
{obj1.style.visibility="visible";obj1.style.display="";obj2.style.visibility="visible";obj2.style.display="";}
if(nm==2)
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";}}
function swapPatient2(nm)
{var nm;var obj1=document.getElementById("3");if(nm==1)
{obj1.style.visibility="visible";obj1.style.display="";}
if(nm==2)
{obj1.style.visibility="hidden";obj1.style.display="none";}}
function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true;}else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r;}else{return false;}}
function removeEvent(obj,evType,fn,useCapture){if(obj.removeEventListener){obj.removeEventListener(evType,fn,useCapture);return true;}else if(obj.detachEvent){var r=obj.detachEvent("on"+evType,fn);return r;}else{alert("Handler could not be removed");}}
function getViewportHeight(){if(window.innerHeight!=window.undefined)return window.innerHeight;if(document.compatMode=='CSS1Compat')return document.documentElement.clientHeight;if(document.body)return document.body.clientHeight;return window.undefined;}
function getViewportWidth(){var offset=17;var width=null;if(window.innerWidth!=window.undefined)return window.innerWidth;if(document.compatMode=='CSS1Compat')return document.documentElement.clientWidth;if(document.body)return document.body.clientWidth;}
function getScrollTop(){if(self.pageYOffset)
{return self.pageYOffset;}
else if(document.documentElement&&document.documentElement.scrollTop)
{return document.documentElement.scrollTop;}
else if(document.body)
{return document.body.scrollTop;}}
function getScrollLeft(){if(self.pageXOffset)
{return self.pageXOffset;}
else if(document.documentElement&&document.documentElement.scrollLeft)
{return document.documentElement.scrollLeft;}
else if(document.body)
{return document.body.scrollLeft;}}
var gPopupMask=null;var gPopupContainer=null;var gPopFrame=null;var gReturnFunc;var gPopupIsShown=false;var gDefaultPage="http://backend.parenthood.com/include/loading.html";var gHideSelects=false;var gReturnVal=null;var gTabIndexes=new Array();var gTabbableTags=new Array("A","BUTTON","TEXTAREA","INPUT","IFRAME");if(!document.all){document.onkeypress=keyDownHandler;}
function initPopUp(){theBody=document.getElementsByTagName('BODY')[0];popmask=document.createElement('div');popmask.id='popupMask';popcont=document.createElement('div');popcont.id='popupContainer';popcont.innerHTML=''+'<div id="popupInner">'+'<div id="popupTitleBar">'+'<div id="popupTitle">Parenthood.com</div>'+'<div id="popupControls">'+'<a href="javascript:void(0);" onclick="hidePopWin(false);" id="popCloseBox">close</a>'+'</div>'+'</div>'+'<iframe src="'+gDefaultPage+'" style="width:100%;height:100%;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="100%" height="100%"></iframe>'+'</div>';theBody.appendChild(popmask);theBody.appendChild(popcont);gPopupMask=document.getElementById("popupMask");gPopupContainer=document.getElementById("popupContainer");gPopFrame=document.getElementById("popupFrame");var brsVersion=parseInt(window.navigator.appVersion.charAt(0),10);if(brsVersion<=6&&window.navigator.userAgent.indexOf("MSIE")>-1){gHideSelects=true;}
var elms=document.getElementsByTagName('a');for(i=0;i<elms.length;i++){if(elms[i].className.indexOf("submodal")==0){elms[i].onclick=function(){var width=400;var height=200;params=this.className.split('-');if(params.length==3){width=parseInt(params[1]);height=parseInt(params[2]);}
showPopWin(this.href,width,height,null);return false;}}}}
addEvent(window,"load",initPopUp);function showPopWin(url,width,height,returnFunc,showCloseBox){if(showCloseBox==null||showCloseBox==true){document.getElementById("popCloseBox").style.display="block";}else{document.getElementById("popCloseBox").style.display="none";}
gPopupIsShown=true;disableTabIndexes();gPopupMask.style.display="block";gPopupContainer.style.display="block";centerPopWin(width,height);var titleBarHeight=parseInt(document.getElementById("popupTitleBar").offsetHeight,10);gPopupContainer.style.width=width+"px";gPopupContainer.style.height=(height+titleBarHeight)+"px";setMaskSize();gPopFrame.style.width=parseInt(document.getElementById("popupTitleBar").offsetWidth,10)+"px";gPopFrame.style.height=(height)+"px";gPopFrame.src=url;gReturnFunc=returnFunc;if(gHideSelects==true){hideSelectBoxes();}
window.setTimeout("setPopTitle();",600);}
var gi=0;function centerPopWin(width,height){if(gPopupIsShown==true){if(width==null||isNaN(width)){width=gPopupContainer.offsetWidth;}
if(height==null){height=gPopupContainer.offsetHeight;}
var theBody=document.getElementsByTagName("BODY")[0];var scTop=parseInt(getScrollTop(),10);var scLeft=parseInt(theBody.scrollLeft,10);setMaskSize();var titleBarHeight=parseInt(document.getElementById("popupTitleBar").offsetHeight,10);var fullHeight=getViewportHeight();var fullWidth=getViewportWidth();gPopupContainer.style.top=(scTop+((fullHeight-(height+titleBarHeight))/2))+"px";gPopupContainer.style.left=(scLeft+((fullWidth-width)/2))+"px";}}
addEvent(window,"resize",centerPopWin);addEvent(window,"scroll",centerPopWin);window.onscroll=centerPopWin;function setMaskSize(){var theBody=document.getElementsByTagName("BODY")[0];var fullHeight=getViewportHeight();var fullWidth=getViewportWidth();if(fullHeight>theBody.scrollHeight){popHeight=fullHeight;}else{popHeight=theBody.scrollHeight;}
if(fullWidth>theBody.scrollWidth){popWidth=fullWidth;}else{popWidth=theBody.scrollWidth;}
gPopupMask.style.height=popHeight+"px";gPopupMask.style.width=popWidth+"px";}
function hidePopWin(callReturnFunc,location){var location;gPopupIsShown=false;var theBody=document.getElementsByTagName("BODY")[0];theBody.style.overflow="";restoreTabIndexes();if(gPopupMask==null){return;}
gPopupMask.style.display="none";gPopupContainer.style.display="none";if(callReturnFunc==true&&gReturnFunc!=null){gReturnVal=window.frames["popupFrame"].returnVal;window.setTimeout('gReturnFunc(gReturnVal);',1);}
gPopFrame.src=gDefaultPage;if(gHideSelects==true){displaySelectBoxes();}
if(location=="userlogin.php")
document.location=location;}
function setPopTitle(){return;if(window.frames["popupFrame"].document.title==null){window.setTimeout("setPopTitle();",10);}else{document.getElementById("popupTitle").innerHTML=window.frames["popupFrame"].document.title;}}
function keyDownHandler(e){if(gPopupIsShown&&e.keyCode==9)return false;}
function disableTabIndexes(){if(document.all){var i=0;for(var j=0;j<gTabbableTags.length;j++){var tagElements=document.getElementsByTagName(gTabbableTags[j]);for(var k=0;k<tagElements.length;k++){gTabIndexes[i]=tagElements[k].tabIndex;tagElements[k].tabIndex="-1";i++;}}}}
function restoreTabIndexes(){if(document.all){var i=0;for(var j=0;j<gTabbableTags.length;j++){var tagElements=document.getElementsByTagName(gTabbableTags[j]);for(var k=0;k<tagElements.length;k++){tagElements[k].tabIndex=gTabIndexes[i];tagElements[k].tabEnabled=true;i++;}}}}
function hideSelectBoxes(){for(var i=0;i<document.forms.length;i++){for(var e=0;e<document.forms[i].length;e++){if(document.forms[i].elements[e].tagName=="SELECT"){document.forms[i].elements[e].style.visibility="hidden";}}}}
function displaySelectBoxes(){for(var i=0;i<document.forms.length;i++){for(var e=0;e<document.forms[i].length;e++){if(document.forms[i].elements[e].tagName=="SELECT"){document.forms[i].elements[e].style.visibility="visible";}}}}
_version=11;if(navigator.userAgent.indexOf('Mozilla/3')!=-1){_version=10;}

