<!--//













var pStates=new Array();
    pStates[0]=127;
    pStates[1]=new Array();
    pStates[2]=new Array();
function writePane(pane,str){
 document.getElementById(pane).innerText = str;
}
function movePane(pane){
 if(pStates[1][pane]==true){
  var obj = document.getElementById(pane);
  obj.style.left = (window.event.x + 16);
  obj.style.top = (window.event.y + 8);
 }
}
function showPane(pane){
 if(pStates[2][pane]!=null){
  clearTimeout(pStates[2][pane]);
  pStates[2][pane]=null;
 }
 pStates[1][pane]=true;
 var obj = document.getElementById(pane);
 obj.style.visibility='visible';
 obj.style.display='inline';
}
function _hidePane(pane){
 var obj = document.getElementById(pane);
 obj.style.visibility='hidden';
 obj.style.display='none';
 pStates[1][pane]=false;
}
function hidePane(pane,bnow){
 if(pStates[2][pane]!=null){
  clearTimeout(pStates[2][pane]);
 }
 if(bnow==true){
  _hidePane(pane);
 }else{
  pStates[2][pane]=setTimeout('_hidePane(\''+pane+'\')',pStates[0]);
 }
}
















function deleteCookie(strName,strPath,strDomain){
 if(getCookie(strName)){
  document.cookie = strName + "=" + ((strPath) ? "; strPath=" + strPath : "") + ((strDomain) ? "; strDomain=" + strDomain: "") + "; expires=Thu, 01-Jan-05 00:00:01 GMT";
 }
}

function getCookie(strName){
 var strSearch=strName+'=';
 if(document.cookie.length>0){
  var intOffset=document.cookie.indexOf(strSearch);
  if(intOffset!=-1){
   intOffset+=strSearch.length;
   var intEnd=document.cookie.indexOf(';',intOffset);
   if(intEnd==-1){ intEnd = document.cookie.length; }
   return unescape(document.cookie.substring(intOffset,intEnd));
  }
 }
 return false;
}

function setCookie(strName,strValue,intDays){
 if(intDays>0){
  var e=new Date();
  e.setTime(e.getTime()+((1000*60*60*24)*intDays));
  document.cookie=strName+'='+strValue+'; path=/; expires='+e.toGMTString();
  return true;
 }else{
  document.cookie=strName+'='+strValue+'; path=/;';
  return true;
 }
 return false;
}

function gotCookies(){
 if(getCookie('nse')!=1){
  setCookie('nse',1);
  if(getCookie('nse')==1){
   top.location = top.location;
  }else{
   return('Your browsing experience would be much better with "Cookies" enabled');
  }
 }
 return '';
}

















var intLogoutWarning=300000;
var popupWindow='';
function logoutDo(loc){
 popupWindow=window.open('','popupWindow','width=200,height=140');
 popupWindow.focus();
 popupWindow.document.write('<HTML><HEAD></HEAD><BODY onBlur="this.focus();"><TABLE WIDTH="100%" HEIGHT="100%"><TR><TD><CENTER><TABLE><TR><TD><CENTER><FONT SIZE="2" FACE="arial,verdana">WARNING: Your Session Timeout has Expired,<BR />You are being Logged Out.</FONT><BR /><BR /><FONT SIZE="2" FACE="arial,verdana"><A HREF="JavaScript:close();">Close this Window</A></FONT></CENTER></TD></TR></TABLE></CENTER></TD></TR></TABLE></BODY></HTML>');
 location=loc;
}

function logoutWarning(intTime){
 popupWindow=window.open('','popupWindow','width=200,height=140');
 popupWindow.focus();
 popupWindow.document.write('<HTML><HEAD><'+'SCRIPT'+'>\n// setTimeout(\'this.close()\',(('+intTime+'-1)*1000));\n<'+'/'+'SCRIPT'+'></HEAD><BODY onBlur="this.focus();" onUnload="this.close();"><TABLE WIDTH="100%" HEIGHT="100%"><TR><TD><CENTER><TABLE><TR><TD><CENTER><FONT SIZE="2" FACE="arial,verdana">WARNING: Your Session is going to Expire in about '+Math.round((intTime/60000))+' Minute(s)!</FONT><BR /><!--BR /><A HREF="JavaScript:return true;" onClick="opener.location.href=this.location.href; setTimeout(\'this.close()\',333);">Continue Session</A><BR /--><BR /><FONT SIZE="2" FACE="arial,verdana"><A HREF="JavaScript:close();">Close this Window</A></FONT></CENTER></TD></TR></TABLE></CENTER></TD></TR></TABLE></BODY></HTML>');
}

function _runLogoutTimeout(intTime){
 if(intTime>1){
  if(intLogoutWarning>0 && intTime<=intLogoutWarning){
   logoutWarning(intLogoutWarning);
   intLogoutWarning=0;
  }
  if(intTime>60000){
   var intTimerIncrement=60000;
  }else{
   var intTimerIncrement=1000;
  }
  _setLogoutTimerDisplay(intTime);
  intTime-=intTimerIncrement;
  setTimeout('_runLogoutTimeout('+intTime+')',intTimerIncrement);
 }else{
  logoutDo('?logout');
 }
}

function _setLogoutTimerDisplay(intTime){
 var intDivisor=1000;
 var strLabel='Second(s)';
 if(intTime>60000){ intDivisor=60000; strLabel='Minute(s)'; }
 document.getElementById('timer').value='Log Out in '+Math.round(intTime/intDivisor)+' '+strLabel;
}

function setupLogoutTimeout(intTime){
 document.writeln('<INPUT SIZE="22" STYLE="{color:#999999;font-family:arial,verdana;font-size:7.5pt;font-weight:bold;background:#E9E9E9;border:1px solid #C9C9C9;text-align:center;}" NAME="timer" ID="timer" VALUE="" onFocus="alert(\'For your protection, our system will automatically log you out if this machine remains inactive for too long.\'); this.blur(); return false;" />');
 setTimeout('_runLogoutTimeout('+intTime+')',333);
}



















function popWindow(l,x,y,b){
 popWindow=window.open(l,'popWindow','width='+x+',height='+y);
 if(b){ popWindow.blur(); }else{ popWindow.focus(); }
}

function popupSSP(val){
 if(val==1){
  var Slider=window.open('','Slider','width=512,height=500,scrollbars=1,menu=0');
  Slider.location='/en/slider.php?'+val;
 }
}

function createEmail(u,d,c,s){
 document.write('<A'+(c ? ' CLASS="'+c+'"' : '')+' HREF="mailto:'+u+'&#64;'+d+(s ? '?'+s : '')+'">'+u+'&#64;'+d+'</A>');
}

function printWindow(){
 if(window.print){
  window.print();
 }else{
  alert("Your browser does not support JavaScript printing.  Please select 'Print...' from the File Menu");
 }
 return false;
}

function bookMarkPage(){
 if((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion)>=4)){
  var url='http://www.YottaNetwork.com/';
  var title='YottaNetwork, High Performance Hosting';
  window.external.AddFavorite(url,title);
 }else if(navigator.appName == 'Netscape'){
   alert('Please Press (CTRL+D) To Bookmark Us Now!');
 }
}

function tellFriend(loc){
 var Tell=window.open('/tell_a_friend.php?referer='+escape(loc),'Tell','width=418,height=389,scrollbars=0,menu=0');
}




























function holdForm(frm,nm){
 var qry = new Array();
 for(pos=0;pos<frm.length;pos++){
  var elm = frm.elements[pos];
  var typ = elm.type.substr(0,3);
  if(typ=='che'){
   qry.push(elm.name+'='+(elm.checked?'1':'0'));
  }else if(typ=='sel'){
   qry.push(elm.name+'='+elm.options[elm.selectedIndex].value);
  }else if(typ!='sub'){
   qry.push(elm.name+'='+escape(elm.value));
  }
 }
 return setCookie(nm,qry.join('&'));
}

function resetForm(frm){
 if(frm.submitButton.disabled){
  if(frm.backButton){
   frm.backButton.disabled=1;
  }
  frm.submitButton.disabled=1;
  if(frm.resetButton){
   frm.resetButton.disabled=1;
  }
  frm.submitButton.value=origButton;
  alert('Form did not properly submit, Please try it again');
 }
}

function submitForm(frm){
 if(!(frm.submitButton.disabled)){
  if(validateForm(frm)){
   if(frm.backButton){
    frm.backButton.disabled=1;
   }
   frm.submitButton.disabled=1;
   if(frm.resetButton){
    frm.resetButton.disabled=1;
   }
   origButton=frm.submitButton.value;
   frm.submitButton.value='Processing !';
   setTimeout('resetForm(document.'+frm.name+');',15000);
   frm.submit();
  }
 }else{
  alert('Please wait a minute before trying again, the form is currently in process');
 }
}

function validateForm(frm){
 var strWork='';
 var strNotice='';
 var errCount=0;

 if(frm.user_password){
  strWork=frm.user_password.value;
  if(strWork.length<6 || strWork.length>15){
   strNotice+=(strNotice?'\n':'')+'Please enter a Password between 6 and 15 characters';
   errCount++;
  }else if(frm.user_password_confirmed){
   if(strWork!=frm.user_password_confirmed.value){
    strNotice+=(strNotice?'\n':'')+'The 2 Password fields do NOT match';
    errCount++;
   }
  }
 }

 if(frm.user_salutation){
  if(frm.user_salutation.selectedIndex==0){
   strNotice+=(strNotice?'\n':'')+'Please enter your Salutation';
   errCount++;
  }
 }

 if(frm.user_first_name){
  strWork=frm.user_first_name.value;
  if(!(strWork.length>1)){
   strNotice+=(strNotice?'\n':'')+'Please enter your First Name';
   errCount++;
  }
 }

 if(frm.user_last_name){
  strWork=frm.user_last_name.value;
  if(!(strWork.length>1)){
   strNotice+=(strNotice?'\n':'')+'Please enter your Last Name';
   errCount++;
  }
 }

 if(frm.user_phone_number){
  strWork=frm.user_phone_number.value;
  if(!(strWork.length>9)){
   strNotice+=(strNotice?'\n':'')+'Please enter your Phone Number';
   errCount++;
  }
 }

 if(frm.user_email_address){
  strWork=frm.user_email_address.value;
  var emailAddress_i = strWork.lastIndexOf('.');
  if(!(strWork.indexOf('\@')>0 && emailAddress_i>2 && (emailAddress_i+6)>strWork.length)){
   strNotice+=(strNotice?'\n':'')+'Please enter your Email Address';
   errCount++;
  }
 }

 if(frm.address_primary){
  strWork=frm.address_primary.value;
  if(!(strWork.indexOf(' ')>0 && strWork.length>5)){
   strNotice+=(strNotice?'\n':'')+'Please enter your Address';
   errCount++;
  }
 }

 if(frm.address_city){
  strWork=frm.address_city.value;
  if(!(strWork.length>5)){
   strNotice+=(strNotice?'\n':'')+'Please enter your City';
   errCount++;
  }
 }

 if(frm.address_state){
  if(frm.address_state.selectedIndex==0){
   strNotice+=(strNotice?'\n':'')+'Please enter your State';
   errCount++;
  }
 }

 if(frm.address_postal_code){
  strWork=frm.address_postal_code.value;
  if(!(strWork.length>=3 && strWork.length<=5)){
   strNotice+=(strNotice?'\n':'')+'Please enter your Postal Code';
   errCount++;
  }
 }

 if(errCount>0){
  alert((errCount>3 ? 'Aw, Com\'on, you didn\'t even TRY ...' : 'There were some Errors in the Form')+'\n--------------------------------------------------------\n'+strNotice);
 }
 return !(errCount>0);
}

function confirmReset(frm){
 if(confirm('Are you sure you want to RESET this form?')){
  frm.reset();
  return true;
 }
 return false;
}






















function sTH(item){
 if(fTree[0]!=item){
  if(fTree[item][2]!=false){
   clearTimeout(fTree[item][2]);
   fTree[item][2]=false;
  }
  fTree[0]=item;
  itemOn(item);
 }
}

function hTH(item){
 fTree[0]=0;
 if(fTree[item][2]!=false){
  clearTimeout(fTree[item][2]);
 }
 fTree[item][2]=setTimeout('menuClear()',79);
}

function menuClear(){
 if(tTree[0]){
  clearTimeout(tTree[0]);
  tTree[0]=false;
 }

 var item=fTree[0];
 while(item>0){
  if(fTree[item][2]!=false){
    clearTimeout(fTree[item][2]);
    fTree[item][2]=false;
  }
  tTree[item]=true;
  item=fTree[item][0];
 }

 for(item=(fTree.length-1);item>0;item--){
  if(tTree[item]==true){
   tTree[item]=false;
   itemOn(item);
  }else{
   itemOff(item);
  }
 }

 tTree[0]=setTimeout('holdData()',47);
}

function itemOn(item){
 if(fTree[item][1]==false){
  fTree[item][1]=true;
  if(document.getElementById('g'+item)){
   document.getElementById('g'+item).style.visibility='visible';
  }
  document.getElementById('i'+item).className='dhtml_on';
 }
}

function itemOff(item){
 if(fTree[item][1]==true){
  if(document.getElementById('g'+item)){
   document.getElementById('g'+item).style.visibility='hidden';
  }
  document.getElementById('i'+item).className='dhtml_off';
  fTree[item][1]=false;
 }
}

function holdData(){
 tTree[0]=false;
 var navData = new Array('0='+fTree[0]);
 for(var item=(fTree.length-1);item>0;item--){
  if(fTree[item][1]==true){
   navData.push(item+'=1');
  }
 }
 return setCookie('nav_data',navData.join('&'));
}













function createXMLObject(){
 var XMLHttpReqObj;
 if(document.implementation && document.implementation.createDocument){
  XMLHttpReqObj = document.implementation.createDocument('','',null);
 }else if(window.XMLHttpRequest){
  XMLHttpReqObj = new XMLHttpRequest();
 }else if(window.ActiveXObject){
  XMLHttpReqObj = new ActiveXObject("Microsoft.XMLHTTP");
 }
 return XMLHttpReqObj;
}

function xmlHTTPPost(url,div,str){
 var xmlHttpReq = createXMLObject();
 xmlHttpReq.open((str?'POST':'GET'),url,false);
 if(str) xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
 xmlHttpReq.onload = 
 xmlHttpReq.onreadystatechange = function(){
  var xmlDoc;
  if(xmlHttpReq.readyState==4){
   if(xmlHttpReq.status>=200 && xmlHttpReq.status<300){
    xmlDoc = xmlHttpReq.responseXML;
    divProcessXML(div,xmlDoc);
   }
  }
 }

 xmlHttpReq.send(str);
}

function divProcessXML(div,xmlDoc){
 var qry = new Array();
 var x = xmlDoc.getElementsByTagName('record');
 if(x.length>0){
  str = '';
  for(i=0;i<x.length;i++){
   if(x[i].nodeType==1){
    for(p=0;p<x[i].childNodes.length;p++){
     qry.push(x[i].childNodes[p].nodeName + " = " + x[i].childNodes[p].childNodes[0].nodeValue);
    }
   }
  }
  document.getElementById(div).innerHTML = '<table cellpadding="0" cellspacing="0" border="0">' + qry.join("\n") + '</table>';
 }
}
//-->