<!-- Revised 11-01-2009 jbw
// Note: Changed Variable "call" to "EzP" - Need to also change in URL Parameters...
// Global Variables: AffiliateID:EzF,HostID:EzH,HostExtension:EzX,Motto:EzM,Phone:EzP,QueryTerms:EzQ[],QueryValues:EzV[],WindowHeight:EzHeight,WindowWidth:EzWidth
// Global Variables and Function Names are U/L Case, Temp Variables and Parameters are ALL CAPS &/or Digits.

var EzH="EzWeb247",EzX=".com",EzP="903"+"-224"+"-5525";if(EzS)EzH=EzS;if(EzC)EzP=EzC;

// EzWeb247 JavaScript Header Ajax + PIX + SetUp
self.status="Hosted by EzWeb247.com (c) 1999 - 2010"
var EzX=".com",EzH=unescape(location.hostname),WNUA=window.navigator.userAgent;
var EZZ=0,EzHeight=screen.availHeight,EzWidth=780,EzM="The Host in Web Hosting";
if(EzH.indexOf("www.")==0||EzH.indexOf("ftp.")==0)EzH=EzH.substring(4,EzH.length);
// document.write("EzHeader.js Loaded EzH=|"+EzH);

// Parse Up to DQX = Query Variables from calling URL - Revised 08-27-2006 jbw
var X=0,Y=0,Z="",DQX=9,DQN=1;EzQ=new Array(DQX),EzV=new Array(DQX);EzV[0]=unescape(location.href);
Y=EzV[0].indexOf("?")+1;if(Y>0){EzV[0]=EzV[0].substring(Y,EzV[0].length)}else{EzV[0]=""};
for(X=1;X<DQX+1;X++){EzQ[X]="";EzV[X]=""};
Z=EzV[0];Y=Z.indexOf("=");
while (Y>0&&DQN<DQX) 
{EzV[DQN]=Z.substring(Y+1,Z.length);EzQ[DQN]=Z.substring(0,Y);
 Z=EzV[DQN];Y=Z.indexOf("&")+1;
 if(Y>0){Z=Z.substring(Y,Z.length);EzV[DQN]=EzV[DQN].substring(0,Y-1)}else{Z=""};
 DQN++;Y=Z.indexOf("=");}

// EzQuery - Returns the Value of Specifed Query Label - Displays All if Parameter = &
function EzQuery(DQQ)
{if(!DQQ){document.write(EzV[0]);return ""};
 if(DQQ=="*"){Z="<br />";DQQ="&"}else{Z="|"};
 for(X=1;X<DQN;X++){if(DQQ==EzQ[X])return EzV[X];
     if(DQQ=="&")document.write(EzQ[X]+"="+EzV[X]+Z)};return "";}

// Setup Misc URL Query Parameters
if(EzQuery("EzH"))EzH=EzQuery("EzH");
if(EzQuery("EzP"))EzP=EzQuery("EzP");
if(EzH.indexOf(".com")>-1)EzH=EzH.substring(0,EzH.indexOf(".com"));
else{if(EzH.indexOf(".")>-1){EzX=EzH.substring(EzH.lastIndexOf("."),EzH.length);EzH=EzH.substring(0,EzH.lastIndexOf("."));}};
if(EzH.length<3){EzX=".com";EzH="EzWeb247"}
if(EzV[0].indexOf("EzH=")<0){EzV[0]+=("&"+"EzH="+EzH);DQN++};
if(EzV[0].indexOf("EzP=")<0){EzV[0]+=("&"+"EzP="+EzP);DQN++};

// Setup EzShow Random Picture Rotator Parameters
var MIN=1,MAX=1,PAT="",PFX="",LEN=4,SFX="",TYP=".jpg",NUM="0000",TMR=10000;
   if(EzQuery("MIN"))MIN=EzQuery("MIN");if(EzQuery("MAX"))MAX=EzQuery("MAX");
   if(EzQuery("PFX"))PFX=EzQuery("PFX");if(EzQuery("SFX"))SFX=EzQuery("SFX");
   if(EzQuery("TYP"))TYP=EzQuery("TYP");if(EzQuery("LEN"))MAX=EzQuery("LEN");
   if(EzQuery("PAT"))PAT=EzQuery("PAT");if(EzQuery("TMR"))TMR=EzQuery("TMR");
   if(MIN<1) MIN=1;  if (MAX<1) MAX=1;  // Correct Invalid RND Num Range Limits

// EzMacro - Manages EzKey[] and EzDat[] Arrays for String Search and Replace Operations
// Returns Updated String or True/False depending on the Specified Action (EzA)
// EzMacro(EzK,"-") Deletes the EzKey[]/EzDat[] Pair Matching EzK Returns True or False(if No Match)
// EzMacro("","-",EzD)  Deletes the EzDat[]/EzKey[] Pair Matching EzD Returns True or False(if No Match)
// EzMacro(EzK,"~",EzD) Replaces ALL instances of EzK in EzD with the Matching EzDat[] Value Returns EzD
// EzMacro("","*",EzD)  Replaces ALL instances of EzKey[] Values in EzD with EzDat[] Returns Updated EzD
var EzKey=new Array, EzDat=new Array;; // Below=Implemented Options - Above = Future Implementations
// EzMacro() Clears the EzKey[] Array and the EzDat[] Array
// EzMacro(EzK) Returns the EzDat[] Element for the Matching EzKey[] Entry     or False(if No Match)
// EzMacro(EzK,"=",EzD) Replaces or Adds EzK:EzD to the EzKey[]/EzDat Arrays True=Replace False=Add
// EzMacro(EzK,"+",EzD) Adds EzK:EzD to the EzKey[]/EzDat Arrays True if EzK PreExisted, False if Not
// EzMacro(EzK,EzA,EzD) Replaces ALL instances of EzK in EzD with EzA and Returns the Updated EzD (Recursive)
function EzMacro(EzK,EzA,EzD)
{var ekl=EzK.length,ekx=EzKey.length,ekp=EzD.indexOf(EzK);
 if(!EzK){EzKey=Null;EzDat=Null;return false;}
 if(!EzA){ekx=0;while(ekx<EzKey.length){if(EzK==EzKey[ekx])return EzDat[ekx];ekx++;}return false};
 if(!EzK|EzK==""|EzD|EzD=="")return "";
 switch (EzA)
 {case "-":return false;break;
  case "+":EzKey[EzKey.length]=EzK;EzDat[EzDat.length]=EzD;return false;break;
  case "=":EzKey[EzKey.length]=EzK;EzDat[EzDat.length]=EzD;return false;break;
  case "~":return false;break;
  case "*":return false;break;}
 if(!EzK|EzK==""|!EzD|EzD=="")return "";
 while (ekp>-1)
 {EzD=EzD.substring(0,ekp)+EzA+EzD.substring(ekp+ekl,EzD.length);
  ekp=EzD.indexOf(EzK);}
  return EzD;}

EzH=EzH.toLowerCase();
EZZ=EzH.indexOf("ezweb");
if(EZZ>-1)
{if(EzH.indexOf("247")>-1)	EzH="247";
 if(EzH.indexOf("books")>-1)	EzH="Books";
 if(EzH.indexOf("ftp")>-1)	EzH="FTP";
 if(EzH.indexOf("game")>-1)	EzH="Games";
 if(EzH.indexOf("html")>-1)	EzH="HTML";
 if(EzH.indexOf("music")>-1)	EzH="Music";
 if(EzH.indexOf("news")>-1)	EzH="News";
 if(EzH.indexOf("pdf")>-1)	EzH="PDF";
 if(EzH.indexOf("photo")>-1)	EzH="Photo";
 if(EzH.indexOf("toys")>-1)	EzH="Toys";
 EzH="EzWeb"+EzH;}
else
{EZZ=EzH.indexOf("doubleclick");
 if(EZZ>-1)
 {EzH=EzH.substring(EZZ+11,EzH.length);
  if(EzH.indexOf("hq",EZZ)>-1)	EzH="HQ";
  if(EzH.indexOf("mail,EZZ")>-1)EzH="Mail";
  if(EzH.indexOf("news")>-1)	EzH="News";
  if(EzH.indexOf("books")>-1)	EzH="Books";
  if(EzH.indexOf("photo")>-1)	EzH="Photo";
  if(EzH.indexOf("sales")>-1)	EzH="Sales";
  if(EzH.indexOf("solar")>-1)	EzH="Solar";
  if(EzH.indexOf("video")>-1)	EzH="Video";
  if(EzH.indexOf("hosting")>-1)	EzH="Hosting";
  if(EzH.indexOf("profits")>-1)	EzH="Profits";
  if(EzH.indexOf("shopper")>-1)	EzH="Shopper";
  EzH="DoubleClick"+EzH;}}
else
{if(EzH.indexOf("1stbuz")>-1)		EzH="1stBuz";
 if(EzH.indexOf("mycellhq")>-1)		EzH="MyCellHQ";
 if(EzH.indexOf("myfreepdf")>-1)	EzH="MyFreePDF";
 if(EzH.indexOf("myfreehtml")>-1)	EzH="MyFreeHTML";
 if(EzH.indexOf("altshopper")>-1)	EzH="ALTshopper";
 if(EzH.indexOf("arklatexnews")>-1)	EzH="ArkLaTexNews";
 if(EzH.indexOf("biztoolshq")>-1) 	EzH="BizToolsHQ";
 if(EzH.indexOf("clxrus")>-1)		EzH="ClxRUs";
 if(EzH.indexOf("debadams")>-1)		EzH="DebAdams";
 if(EzH.indexOf("elfcookery")>-1)	EzH="ElfCookery";
 if(EzH.indexOf("greatbuys247")>-1) 	EzH="GreatBuys247";
 if(EzH.indexOf("itsafaq")>-1)		EzH="ItsaFAQ";
 if(EzH.indexOf("jerrywindham")>-1)	EzH="JerryWindham";
 if(EzH.indexOf("merry-market")>-1) 	EzH="Merry-Market";
 if(EzH.indexOf("merrymarket")>-1)     {EzH="MerryMarket";EzX=".net"};
 if(EzH.indexOf("netmlm")>-1)		EzH="NetMLM";
 if(EzH.indexOf("rarevalues")>-1)	EzH="RareValues";
 if(EzH.indexOf("shopasaurus")>-1) 	EzH="ShopaSarurs";
 if(EzH.indexOf("starchannels")>-1)	EzH="StarChannels";
 if(EzH.indexOf("mobologos")>-1)	EzH="MoboLogos";}
 self.status=EzH+" - "+self.status;
if(!EzH)EzH="EzWeb247";

// EzCenter - Centers the Current Window in the Current Screen
function EzCenter(EZW,EZH)
{self.moveTo(0,0);
 if(!EZW||EZW<10)EZW=EzWidth;if(!EZH||EZH<10)EZH=EzHeight;
 if(EZW<10||EZW>screen.availWidth) {EZW=screen.availWidth;EzWidth=EZW;}
 if(EZH<10||EZH>screen.availHeight){EZH=screen.availHeight;EzHeight=EZH;}
 self.resizeTo(EzWidth,EzHeight);
 self.moveTo(Math.round((screen.availWidth-EZW)/2),Math.round((screen.availHeight-EZH)/2));}

<!-- =-=-=-= (EzDirect) Delayed Web URL Redirect in Sec or Milliseconds (If <0 display message) =-=-=-= -->
function EzDirect(EZD,EZT) 
{if(EzQuery("EZT"))EZT=EzQuery("EZT");if(isNaN(EZT))EZT=30;if(EZT<100)EZT*=1000;
 if(EzQuery("EZD"))EZD=EzQuery("EZD"); if(!EZD||!isNaN(EZD)||EZD.length<5)EZD="EzWeb247;
 if(EZD.indexOf(".")<0)EZD+=".com";if((EZD.indexOf("http://")<0)&&(EZD.indexOf("www."<0)))EZD="http://www."+EZD;
 if(EZT<0){EZT=0-EZT;document.write("Redirecting to: "+EZD+" in "+(EZT/1000)+" Seconds");}
 EZD="self.location.href='"+EZD+"'";setTimeout(EZD,EZT);return false;}

// EzShow Randomly Displays Images from a Specified Path.
// The Images must be sequentially numbered between MIN and MAX.
// PAT specifies the optional local Path or Internet URL
// PFX specifies the File Name Prefix, Before the number, if any.
// LEN specifies the number of digits in the image number.
// SFX specifies the File Name Suffix, After the number, if any.
// TYP specifies the Image File Type such as .JPG, .BMP, .GIF, etc.
// TMR specifies the number of seconds (times 1,000) to display each Image.
// The src="1stImage" clause in the Body specifies the 1st Image to display.
function EzShow(BEG,END) // Display a Randomly Selected PIX Between BEG and END
{var RND=-1;NUM="0000000";
 if(BEG<1)BEG=MIN;if(BEG<1)BEG=1;  // Adjust Min Pix Num
 if(END<1)END=MAX;if(END<2)END=10; // Adjust MAX Pix Num
 while (RND<BEG||RND>END) RND=parseInt(Math.random()*(END+1));
 NUM=NUM+RND; NUM=NUM.substring(NUM.length-LEN,NUM.length);
 document.PIX.src=PAT+PFX+NUM+SFX+TYP; document.PIX.title=PFX+NUM+SFX;
 self.status=EzH+"  Displaying: "+PFX+NUM+SFX+TYP};

// SetUp PixFrame to 4 by 6 Large Thumb Mode
var PixMax=15,PixSN="23810067",RowMax=5,PixBas="Pix",PitBas="Pit",PitWid=144,PitTal=96
Z=EzQuery('RowMax');if(Z){RowMax=Z};Z=EzQuery('PixMax');if(Z){PixMax=Z};Z=EzQuery('PitWid');if(Z){PitWid=Z};Z=EzQuery('PitTal');if(Z){PitTal=Z};

// EzTrow - Displays a Row of Thumbnail Images
// tx1=1stNum,tx2=LastNum,tfx=PathPrefix,sfx=suffix,typ=.jpg,tln=NumLen,thi=ThumbHeight,tlt=AlternateText,ttl=Title,tmo=MouseOver,toc=OnClick
function EzTrow(tx1,tx2,tfx,sfx,typ,tln,thi,tlt,ttl,tmo,toc)
{if(!tfx|tfx<"0")tfx=TFX;if(tfx<"0")tfx="";var tnx="";
 if(!sfx|sfx<"0")sfx=SFX;if(!sfx|sfx<"0")sfx="";if(!typ)typ=".jpg"
 if(!tx1|tx1<1)tx1=1;tnm=tx1;if(!tx2|tx2<(tx1+1))tx2=tx1+9;if(tx2>MAX)tx2=MAX;
 if(!thi|thi<10)thi=65;;if(!typ)typ=TYP;if(!tln|tln<2)tln=LEN;if(tln<2)tln=4;
 if(!tlt|tlt<"0")tlt="EzWebPhotos.com Information";if(!ttl|ttl<"0")ttl="Click for Photo Information";
 if(!tmo|tmo<"0")tmo="onmouseover='NUM="+'"|NUM|"'+';document.PIX.src=PAT+PFX+NUM+SFX+TYP;self.status=EzH+" Displaying: "+PFX+NUM+SFX;return false;'+"'"
 if(!toc|toc<"0")toc="onclick='"+'window.open(PAT+PFX+SFX+"Info.htm?IMG="+PFX+NUM+SFX+"&amp;TYP="+TYP,"Gallery","menubar=false,toolbar=false,resizable=yes,scrollbars=yes");return false;'+"'"
 for(tnm=tx1;tnm<(tx2+1);tnm++){tnx="0000000"+tnm;tnx=tnx.substring((tnx.length-tln),tnx.length);
  document.write('<td><img name="EzT'+tnx+'" alt="'+tlt+'" title="'+ttl+'" src="'+PAT+tfx+tnx+sfx+typ+'" height='+thi+' '+EzMacro("|NUM|",tnx,tmo)+' '+toc+'></td>');}}

// EzLink - Creates Links with URL Query Term Pass Thru
function EzLink(DLH,DL1,DL2,DL3,DL4,DL5)
{var DLS="&",DLA=new Array(5);
 if(!DLH){DLH=""};DLA[0]=DLH;
 if(!DL1){DL1=""};DLA[1]=DL1;
 if(!DL2){DL2=""};DLA[2]=DL2;
 if(!DL3){DL3=""};DLA[3]=DL3;
 if(!DL4){DL4=""};DLA[4]=DL4;
 if(!DL5){DL5=""};DLA[5]=DL5;
 if(DLH.length>1){DLA[0]+="?"};if(DLH=="/"){DLS="/";DLH=EzH+EzX};
 if(DLH==""&&DL1==""){document.write(EzV[0])}}

// EzMail - Protects eMail links from Scavenger Bots - Revised 08-27-2006 jbw
function EzMail(DMN,DML,DMS,DMD,DMT)
{var DMA='', DMC='', DMX=0 // Name,Link,Subject,Domain,Type
// DMD, DML, DMN, DMS Can be Supplied in URL Query - Special DMN Cases: HostName & ButtonLink
 if(!DMD||DMD=='')DMD=EzQuery("DMD");
 if(!DML||DML=='')DML=EzQuery("DML");
 if(!DMN||DMN=='')DMN=EzQuery("DMN");
 if(!DMS||DMS=='')DMS=EzQuery("DMS");
 if(DMN=='')DMN='Support';
 if(DMN=='ButtonLink'){DMX='B';DMN='Contact'};DMC=DMT;
 DMA='<a href=';DMA+='mailto:';DMA+=DMN;DMA+='@';
 if(!DMT||DMT==''||length.DMT>6||DMT=='EzP'){DMT='com'};
 if(DMD==''){DMA+=EzH+EzX}else{DMA=DMA+DMD+'.'+DMT};
 if(DMS==''){DMA+='>'}else{DMA=DMA+'?subject="'+DMS+'">'};DMA+='<b>';
 if(DMX=='B'){DMA+='<button style=font-size:11pt;color:black;background-color:"grey">'};
 if(DML==''){DMA+=DMN}else{DMA+=DML};
 if(DMX=='B'){DMA+='</button>'};DMA+='</b></a>';
 if(DMC=='EzP'&&EzQuery('EzP'))DMA+=' or call <b>'+EzQuery('EzP')+'</b>';
 document.write(DMA)}

// EzContact - Protects eMail links from Scavenger Bots - Revised 08-21-2007 jbw
// EzContact MCS:0=Email;1=Anonomous MCT=LinkText MCD=Domain(Default=HOST) MCB:B=ButtonLInk
function EzContact(MCS,MCT,MCD,MCB)
{var MCA=''
 if(typeof MCD=="undefined"||MCD=='')MCD=EzH+EzX;
 if(typeof MCB=="undefined"||MCB!='B')MCB='';
 if(typeof MCT=="undefined"||MCT=='')MCT=EzQuery("MCT");
 if(typeof MCS=="undefined"||MCS==''||MCS<'0'||MCS>'1')MCS='0';
 if((typeof MCT=="undefined"||MCT=='')&MCS=='1')MCT='Feedback';
 if(typeof MCD=="undefined"||MCT=='')MCT='ContactUs';
 if(MCD.indexOf("www.")==0||MCD.indexOf("ftp.")==0)MCD=MCD.substring(4,MCD.length);
 if(MCD.indexOf("http://")==0)MCD=MCD.substring(7,MCD.length);
 if(MCD.indexOf(".")<0)MCD+=".com";
 MCA='<a rel="nofollow" title="Click to Contact '+EzH+'" href="javascript:displayWindow('+"'http://www."+MCD+"/CGI/MCS/','"+MCS+"');"+'">';
 if(MCB=='B'){MCA+='<button style="font-size:11pt;color:black;background-color:#cccccc">'};
 MCA+=MCT;if(MCB=='B'){MCA+='</button>'};MCA+='</a>';document.write(MCA);}

// EzTxtCheck - Limits Text Entry Length and Displays Characters Remaining.
// TXT=ID of Text Field  FLD=ID of "Remaining" Field  MAX=Max Characters Enterable
function EzTxtCheck(TXT,FLD,MAX)  // Defaults: TXT=MsgTxt  FLD=TxtLeft  MAX=120
{if(!MAX||isNaN(MAX))MAX=120;if(!FLD)FLD=TxtLeft;if(!TXT)TXT=MsgTxt;var len=TXT.value.length;
 if(len>MAX) TXT.value=TXT.value.substring(0,MAX);
 else document.getElementById(FLD.id).innerHTML=''+(MAX-len);}

// EzNumCheck - Limits Numeric Entry Length and Text to Digits Only - Displays Digits Remaining.
// TXT=ID of Numeric Field  FLD=ID of "Remaining" Field  MAX=Max Digits Enterable
// This Numeric Test will allow a leading - and one . - OK for Generic & Fractions but not Pure Digit Only
function EzNumCheck(NUM,FLD,MAX)  // Defaults: NUM=NumTxt  FLD=NumLeft  MAX=10
{if(!MAX||isNaN(MAX))MAX=10;if(!FLD)FLD=NumLeft;if(!NUM)NUM=NumTxt;var len=NUM.value.length;
 if(len>MAX) NUM.value=NUM.value.substring(0,MAX);
 else {if(isNaN(NUM.value)) 
      {NUM.value=NUM.value.substring(0,len-1);alert("Please Enter Numbers Only.");}
       document.getElementById(FLD.id).innerHTML=''+(MAX-len);}}
-->
