var arrTemp=self.location.href.split("?");var picUrl=(arrTemp.length>0)?arrTemp[1]:"";var NS=(navigator.appName=="Netscape")?true:false;function PopupScreenshot(sPicURL){window.open("/popup.asp?"+sPicURL,"","resizable=1,height=200,width=200");}
function PopupImg(pURL){var props=window.open(pURL,'FullScreen','alwaysRaised=1,toolbar=0,scrollbars=0,location=0,statusbars=0,menubars=1,resizable=1,width=840,height=630,top=0,left=0');props.focus();return;}
function Popup(targetUrl){var props=window.open(targetUrl,'PopupPage','alwaysRaised=1,scrollbars=1,resizable=1,toolbar=0,location=0,statusbars=0,menubars=1,width=1024,height=500,top=0,left=0');props.focus();return;}
function PopupFull(targetUrl,pageName,Width,Height)
{props=window.open(targetUrl,pageName,'top='+(screen.height-Height)/2+', left='+(screen.width-Width)/2+', alwaysRaised=1,scrollbars=1,resizable=1,toolbar=0,location=0,statusbars=0,menubars=0,width='+Width+',height='+Height);props.focus();return;}
var curnewsindex=0
var curcontentindex=0
var messages=new Array()
var newsitems=new Array()
function loadMessaging(){var j=0;var list;var node;list=document.getElementById('messaging');for(i=0;i<list.childNodes.length;i++){node=list.childNodes[i];if(node.nodeName=="DIV")
messages[j++]=node;}}
function rotatemessaging(){curcontentindex=(curcontentindex<messages.length-1)?curcontentindex+1:0
prevcontentindex=(curcontentindex==0)?messages.length-1:curcontentindex-1
messages[prevcontentindex].style.display="none"
messages[curcontentindex].style.display="block"}
function toggleDiv(pID){if(document.getElementById(pID).style.display=='none'){document.getElementById(pID).style.display='block';}
else{document.getElementById(pID).style.display='none';}}
function showPrev(pLocation,pAltText){document.getElementById('screenshot-preview-img').style.display='none';document.getElementById('screenshot-preview-img').src='';document.getElementById('screenshot-preview-img').style.display='block';document.getElementById('screenshot-preview-img').src=pLocation;document.getElementById('screenshot-preview-img').style.marginLeft='-400px'}
function hidePrev(e){var evt=window.event||e
var toElement=evt.toElement||evt.relatedTarget
if(toElement.id!='screenshot-preview-img'){document.getElementById('screenshot-preview-img').style.display='none';document.getElementById('screenshot-preview-img').src='';}}
function showNav(pTab,pCount){for(iTab=1;iTab<=pCount;iTab++)
{document.getElementById('n'+iTab).style.display='none';document.getElementById('ntab'+iTab).className='ntab';}
if(pTab==1)
{document.getElementById('n1').style.display='block';document.getElementById('ntab1').className='ntab-active-start';}
else
{document.getElementById('n'+pTab).style.display='block';document.getElementById('ntab'+(pTab-1)).className='ntab-adj';document.getElementById('ntab'+pTab).className='ntab-active';}}
function showMenuESD(argSection,argTab)
{document.getElementById('esd-program').style.display='none';document.getElementById('esd-t1').style.color='#fff';document.getElementById('esd-faqs').style.display='none';document.getElementById('esd-t2').style.color='#fff';document.getElementById('esd-livedemo').style.display='none';document.getElementById('esd-t3').style.color='#fff';document.getElementById('esd-agreement').style.display='none';document.getElementById('esd-t4').style.color='#fff';document.getElementById('esd-applicationform').style.display='none';document.getElementById('esd-t5').style.color='#fff';document.getElementById(argSection).style.display='block';document.getElementById(argTab).style.color='#666';}
function ValidateTranslationCalc()
{if(frmTransCalc.txtNoOfWords.value==0)
{alert('Please specify a number of words to translate');frmTransCalc.txtNoOfWords.focus();return false;}
if(!frmTransCalc.chkLanguageFrench.checked&&!frmTransCalc.chkLanguageGerman.checked&&!frmTransCalc.chkLanguagePortugueseBrazilian.checked&&!frmTransCalc.chkLanguageItalian.checked&&!frmTransCalc.chkLanguageJapanese.checked&&!frmTransCalc.chkLanguageSpanish.checked&&!frmTransCalc.chkLanguageKorean.checked&&!frmTransCalc.chkLanguageTradChinese.checked&&!frmTransCalc.chkLanguageSimpChinese.checked)
{alert('Please select a language to Translate');frmTransCalc.chkLanguageFrench.focus();return false;}}
function noenter()
{return!(window.event&&window.event.keyCode==13);}
function ESDOptionChange()
{var varOptions
var varOption
varOptions=document.getElementsByName('ESDType06');for(i=0;i<varOptions.length;i++)
{varOption=varOptions[i];if(varOption.checked==true)
{switch(varOption.value)
{case'Author ESD':document.getElementsByName('SelectCatalogOption09')[8].disabled=true;document.getElementsByName('SelectCatalogOption09')[9].disabled=true;document.getElementsByName('SupportEmailAddress13')[0].disabled=false;document.getElementsByName('SupportEmailAddress13')[0].style.background='White';document.getElementsByName('ReportingEmailAddress14')[0].disabled=false;document.getElementsByName('ReportingEmailAddress14')[0].style.background='White';break;case'Reseller ESD':document.getElementsByName('SelectCatalogOption09')[8].disabled=false;document.getElementsByName('SelectCatalogOption09')[9].disabled=false;document.getElementsByName('SupportEmailAddress13')[0].disabled=true;document.getElementsByName('SupportEmailAddress13')[0].style.background='LightGrey';document.getElementsByName('ReportingEmailAddress14')[0].disabled=true;document.getElementsByName('ReportingEmailAddress14')[0].style.background='LightGrey';break;}}}}
function PCIconOptionChange()
{var varOptions
var varOption
varOptions=document.getElementsByName('SelectIcon10');for(i=0;i<varOptions.length;i++)
{varOption=varOptions[i];if(varOption.checked==true)
{switch(varOption.value)
{case'None':document.getElementsByName('SelectHexColorTop11')[0].disabled=true;document.getElementsByName('SelectHexColorTop11')[0].style.background='LightGrey';document.getElementsByName('SelectHexColorBottom12')[0].disabled=true;document.getElementsByName('SelectHexColorBottom12')[0].style.background='LightGrey';break;case'BlackAndYellowIcon':document.getElementsByName('SelectHexColorTop11')[0].disabled=true;document.getElementsByName('SelectHexColorTop11')[0].style.background='LightGrey';document.getElementsByName('SelectHexColorBottom12')[0].disabled=true;document.getElementsByName('SelectHexColorBottom12')[0].style.background='LightGrey';break;case'CustomizedIcon':document.getElementsByName('SelectHexColorTop11')[0].disabled=false;document.getElementsByName('SelectHexColorTop11')[0].style.background='White';document.getElementsByName('SelectHexColorBottom12')[0].disabled=false;document.getElementsByName('SelectHexColorBottom12')[0].style.background='White';break;}}}}
function esdFormValidator(theForm)
{if(theForm.esdcontactname.value.length==0)
{alert("Please enter your name");theForm.esdcontactname.focus();return false;}
if(theForm.esdemailaddress.value.length==0)
{alert("Please enter a valid email address");theForm.esdemailaddress.focus();return false;}
if(theForm.esdphonenumber.value.length==0)
{alert("Please enter your phone number");theForm.esdphonenumber.focus();return false;}
if(theForm.esdcompanyname.value.length==0)
{alert("Please enter your company name");theForm.esdcompanyname.focus();return false;}
if(theForm.esdwebsite.value.length==0)
{alert("Please enter your Web site address");theForm.esdwebsite.focus();return false;}
if
(theForm.esdframe[0].checked==false&&theForm.esdframe[1].checked==false&&theForm.esdframe[2].checked==false&&theForm.esdframe[3].checked==false)
{alert("Please select the type of frame you would like");theForm.esdframe[0].focus();return false;}
if
(theForm.esdfont[0].checked==false&&theForm.esdfont[1].checked==false&&theForm.esdfont[2].checked==false&&theForm.esdfont[3].checked==false)
{alert("Please select the font you would like");theForm.esdfont[0].focus();return false;}
if(theForm.esdlinkcolor.value.length==0)
{alert("Please enter the Hex Ref of your links");theForm.esdlinkcolor.focus();return false;}
if
(theForm.esdproductstore[0].checked==false&&theForm.esdproductstore[1].checked==false&&theForm.esdproductstore[2].checked==false&&theForm.esdproductstore[3].checked==false)
{alert("Please select the options you would to see in your customized catalog");theForm.esdproductstore[0].focus();return false;}
if(theForm.esdsupportemail.value.length==0&&theForm.esdsupportemail.disabled==false)
{alert("Please enter your Support Email Address");theForm.esdsupportemail.focus();return false;}
if(theForm.esdonlinereportingemail.value.length==0&&theForm.esdonlinereportingemail.disabled==false)
{alert("Please enter your Email Address for Online Reporting");theForm.esdonlinereportingemail.focus();return false;}
return true;}
