var allPages=null;  var pageID,subID,lev3ID;
var baseloc='http://www.hibyte.co.uk/';
var basecgiloc='http://www.hibyte.co.uk/cgi-bin/';
var sL='http://www.hibyte.co.uk/software/';
var cgL='http://www.hibyte.co.uk/cgi-bin/software/';
//var sL='http://localhost/hibyte/';
//var cgL='http://localhost/cgi-bin/software/';
var sLp=sL+'/hbpages/';
/*  formcheck function added below - replaces old email check used on existing contect form
Much more compact - to save download times - + can test any type of field
call by onSubmit="return formCheck(thisForm,stdCheck,emailCheck)" in form tag
thisForm is always 'this' - no quotes
stdCheck and emailCheck are fieldName|UserPrompt pairs separated by comma.
Enclose whole stdCheck or emailCheck string in single quotes.
stdCheck will only be tested for a value - but emailCheck will also be tested for a valid email pattern
Example:
onSubmit="return formCheck(this,'pxcode|Your Postcode,agreeterms|Agree Terms,qty|A Quantity','email|Your Email')"
----------------------------------------------------------------------- */
allPages=new Array();
allPages[0]="Content Management|#|"
+ "Overview|"+sLp+"over_cms.html|"
//+ "Excelcius|"+sLp+"excelcius_over.html|"
+ "AutoSites|"+sLp+"auto_over.html|"
//+ "HIBAsites|"+sLp+"hiba_over.html|"
+ "HiContacts|"+sLp+"hicontacts_over.html|"
+ "HiContacts Pro|"+sLp+"hicontactspro_over.html|"
+ "HiShop|"+sLp+"hishop_over.html|"
+ "HiAgents|"+sLp+"hiagents_over.html|"
+ "HiAgents MU|"+sLp+"hiagentsmu_over.html|"
+ "HiAgents 2|"+sLp+"hiagents2_over.html|"
+ "HiAlbum|"+sLp+"hialbum_over.html|"
+ "HiGuest|"+sLp+"higuest_over.html|"
+ "HiNews|"+sLp+"hinews_over.html|"
+ "HiJobs|"+sLp+"hijobs_over.html|"
+ "HiDocs|"+sLp+"hidocs_over.html";
/* ----------------------------------------------------------------------- */
allPages[1]="Databases|#|"
+ "Overview|"+sLp+"over_databases.html|"
+ "HiData|"+sLp+"hidata_over.html|"
+ "HiData 2|"+sLp+"hidata2_over.html|";
//+ "HiMap|"+sLp+"himap_over.html";
/* ----------------------------------------------------------------------- */
allPages[2]="Domain Search|#|"
+ "Overview|"+sLp+"over_domain.html|"
+ "MultiDom Pro|"+sLp+"mdpro_over.html|"
+ "MultiDom Pro Cart|"+sLp+"mdcart_over.html";
/* ----------------------------------------------------------------------- */
allPages[3]="Form Mailers|#|"
+ "Overview|"+sLp+"over_mailers.html|"
+ "HiMail Free|"+sLp+"himail_over.html|"
+ "HiMail Pro|"+sLp+"himailpro_over.html|"
+ "HiMail DB|"+sLp+"himaildb_over.html|"
+ "HiFriend|"+sLp+"hifriend_over.html|"
+ "HiFriend Pro|"+sLp+"hifriendpro_over.html";
/* ----------------------------------------------------------------------- */
allPages[4]="FAQ Systems|#|"
+ "Overview|"+sLp+"over_faq.html|"
+ "HiFAQ|"+sLp+"hifaq_over.html|"
+ "HiFAQ Pro|"+sLp+"hifaqpro_over.html";
/* ----------------------------------------------------------------------- */
allPages[5]="Utilities|#|"
+ "Overview|"+sLp+"over_utilities.html|"
+ "HiPrint|"+sLp+"hiprint_over.html|"
+ "FormSense|"+sLp+"formsense_over.html|"
+ "ColourCalc Pro|"+sLp+"colourcalc_over.html|"
+ "HiCalender|"+sLp+"hicalendar_over.html|"
+ "HiSearch|"+sLp+"hisearch_over.html";
/* ----------------------------------------------------------------------- */
//allPages[6]="Hosted|#|"
//+ "Hosted solutions|"+sL+"/hosted.html|"
/* ----------------------------------------------------------------------- */
var subPages1_1=null;
var subPages2_1=null;
var subPages3_1=null;
var subPages4_1=null;
var subPages5_1=null;
var subPages6_1=null;
var subPages7_1=null;
var subPages8_1=null;
var subPages9_1=null;
var subPages10_1=null;
var subPages11_1=null;
var subPages12_1=null;
var subPages1000_1=null;
/* ----------------------------------------------------------------------- */
//subPages1_2="|excelcius_over.html|"
//+ "Overview|"+sLp+"excelcius_over.html|"
//+ "In Detail|"+sLp+"excelcius_detail.html|"
//+ "Demos|"+sLp+"excelcius_demo.html|"
//+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=2|"
//+ "Version info|"+cgL+"/versions/hishop/hiversion.pl|"
//+ "FAQ Area|"+cgL+"/faqs/excelcius/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hishop/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hishop/higuest.pl?|"
//+ "Quote request|"+sLp+"excelcius_quote.html|";
/* ----------------------------------------------------------------------- */
subPages1_2="|auto_over.html|"
+ "Overview|"+sLp+"auto_over.html|"
+ "In Detail|"+sLp+"auto_detail.html|"
+ "Features|"+sLp+"auto_features.html|"
+ "Pricing|"+sLp+"auto_pricing.html|"
+ "Module Prices|"+sLp+"auto_module.html|"
+ "Premium Modules|"+sLp+"data_module.html~"+sLp+"member_module.html|"
+ "User Demo|"+sLp+"auto_userdemo.html|"
//+ "Admin Demo|"+sLp+"xxxx.html|"
+ "Showcase Site|"+sLp+"auto_showcase.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=1|"
+ "Version info|"+cgL+"/versions/autosites/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/autosites/hifaq.pl|"
+ "Documentation|"+cgL+"/downloads/autosites/hidocs.pl|"
+ "Download Now|"+sLp+"auto_download.html|"
+ "Buy Options|"+baseloc+"/pages/autositesorder.html blank|";
/* ----------------------------------------------------------------------- */
//subPages1_4="|hiba_over.html|"
//+ "Overview|"+sLp+"hiba_over.html|"
//+ "In Detail|"+sLp+"hiba_detail.html|"
//+ "Demos|"+sLp+"hiba_demo.html|"
//+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=24|"
//+ "Version info|"+cgL+"/versions/hibasites/hiversion.pl|"
//+ "FAQ Area|"+cgL+"/faqs/hibasites/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hibasites/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hibasites/higuest.pl?|"
//+ "Buy Now|"+"http://www.hibyte.co.uk/pages/hibasitesorder.html blank|";
/* ----------------------------------------------------------------------- */
subPages1_3="|hicontacts_over.html|"
+ "Overview|"+sLp+"hicontacts_over.html|"
+ "In Detail|"+sLp+"hicontacts_detail.html|"
//+ "Modules|"+sLp+"hicontacts_module.html|"
+ "Custom|"+sLp+"hicontacts_custom.html|"
+ "FAQ Area|"+cgL+"/faqs/hicontacts/hifaq.pl|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages1_4="|hicontactspro_over.html|"
+ "Overview|"+sLp+"hicontactspro_over.html|"
+ "In Detail|"+sLp+"hicontactspro_detail.html|"
//+ "Modules|"+sLp+"hicontactspro_module.html|"
+ "Custom|"+sLp+"hicontactspro_custom.html|"
+ "FAQ Area|"+cgL+"/faqs/hicontactspro/hifaq.pl|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages1_5="|hishop_over.html|"
+ "Overview|"+sLp+"hishop_over.html|"
+ "In Detail|"+sLp+"hishop_detail.html|"
+ "Demos|"+cgL+"/demo/hiprod/hiprod.pl|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=2|"
//+ "Version info|"+cgL+"/versions/hishop/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hishop/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hishop/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hishop/higuest.pl?|"
+ "Download|"+sLp+"hishop_download.html|";
/* ----------------------------------------------------------------------- */
subPages1_6="|hiagents_over.html|"
+ "Overview|"+sLp+"hiagents_over.html|"
+ "In Detail|"+sLp+"hiagents_detail.html|"
+ "Demos|"+sLp+"hiagents_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=3|"
//+ "Version info|"+cgL+"/versions/hiagents/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hiagents/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hiagents/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hiagents/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages1_7="|hiagentsmu_over.html|"
+ "Overview|"+sLp+"hiagentsmu_over.html|"
+ "In Detail|"+sLp+"hiagentsmu_detail.html|"
+ "Demos|"+sLp+"hiagentsmu_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=4|"
//+ "Version info|"+cgL+"/versions/hiagentsmu/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hiagentsmu/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hiagentsmu/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hiagentsmu/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages1_8="|hiagents2_over.html|"
+ "Overview|"+sLp+"hiagents2_over.html|"
+ "In Detail|"+sLp+"hiagents2_detail.html|"
+ "Demos|"+sLp+"hiagents2_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=4|"
//+ "Version info|"+cgL+"/versions/hiagentsmu/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hiagentsmu/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hiagentsmu/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hiagentsmu/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages1_9="|hialbum_over.html|"
+ "Overview|"+sLp+"hialbum_over.html|"
+ "In Detail|"+sLp+"hialbum_detail.html|"
+ "Demos|"+sLp+"hialbum_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=5|"
//+ "Version info|"+cgL+"/versions/hialbum/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hialbum/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hialbum/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hialbum/higuest.pl?|"
+ "Download|"+sLp+"hialbum_download.html|";
/* ----------------------------------------------------------------------- */
subPages1_10="|higuest_over.html|"
+ "Overview|"+sLp+"higuest_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+cgL+"/demo/higuest1/higuest.pl|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=6|"
//+ "Version info|"+cgL+"/versions/higuest/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/higuest/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/higuest/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/higuest/higuest.pl?|"
+ "Download|"+sLp+"higuest_download.html|";
/* ----------------------------------------------------------------------- */
subPages1_11="|hinews_over.html|"
+ "Overview|"+sLp+"hinews_over.html|"
+ "In Detail|"+sLp+"hinews_detail.html|"
+ "Demos|"+cgL+"/demo/hinews/hinews.pl|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=7|"
//+ "Version info|"+cgL+"/versions/hinews/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hinews/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hinews/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hinews/higuest.pl?|"
+ "Download|"+sLp+"hinews_download.html|";
/* ----------------------------------------------------------------------- */
subPages1_12="|hijobs_over.html|"
+ "Overview|"+sLp+"hijobs_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+cgL+"/demo/hijobs/hijobs.pl|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=8|"
//+ "Version info|"+cgL+"/versions/hijobs/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hijobs/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hijobs/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hijobs/higuest.pl?|"
+ "Download|"+sLp+"hijobs_download.html|";
/* ----------------------------------------------------------------------- */
subPages1_13="|hidocs_over.html|"
+ "Overview|"+sLp+"hidocs_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+"http://www.hibyte.co.uk/cgi-bin/software/demo/hidocs/hidocs.pl|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=23|"
//+ "Version info|"+cgL+"/versions/hidocs/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hidocs/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hidocs/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hidocs/higuest.pl?|"
+ "Download|"+sLp+"hidocs_download.html|";
/* ----------------------------------------------------------------------- */
subPages2_2="|hidata_over.html|"
+ "Overview|"+sLp+"hidata_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+sLp+"hidata_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=9|"
//+ "Version info|"+cgL+"/versions/hidata/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hidata/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hidata/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hidata/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages2_3="|hidata2_over.html|"
+ "Overview|"+sLp+"hidata2_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+sLp+"hidata2_demo.html|"
//+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=10|"
//+ "Version info|"+cgL+"/versions/himap/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hidata2/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/himap/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/himap/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
//subPages3_2="|md_over.html|"
//+ "Overview|"+sLp+"md_over.html|"
//+ "In Detail with Demo|"+sLp+"md_detail.html|"
//+ "Demos|"+sLp+"xxxx.html|"
//+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=11|"
//+ "Version info|"+cgL+"/versions/multidombasic/hiversion.pl|"
//+ "FAQ Area|"+cgL+"/faqs/multidombasic/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/multidombasic/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/multidombasic/higuest.pl?|"
//+ "21 Day Free trial|"+baseloc+"/pages/multidomdownload.html blank|"
//+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages3_2="|mdpro_over.html|"
+ "Overview|"+sLp+"mdpro_over.html|"
+ "More Detail|"+sLp+"mdpro_moredetail.html|"
+ "Demo Page|"+sLp+"mdpro_detail.html|"
//+ "Demos|"+sLp+"xxxx.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=12|"
//+ "Version info|"+cgL+"/versions/multidompro/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/multidompro/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/multidompro/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/multidompro/higuest.pl?|"
+ "Download|"+sLp+"mdpro_download.html|";
/* ----------------------------------------------------------------------- */
subPages3_3="|mdcart_over.html|"
+ "Overview|"+sLp+"mdcart_over.html|"
+ "More Detail|"+sLp+"mdcart_moredetail.html|"
+ "Demo Page|"+sLp+"mdcart_detail.html|"
//+ "Demos|"+sLp+"xxxx.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=13|"
//+ "Version info|"+cgL+"/versions/multidomprocart/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/multidomprocart/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/multidomprocart/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/multidomprocart/higuest.pl?|"
+ "Download|"+sLp+"mdcart_download.html|";
/* ----------------------------------------------------------------------- */
subPages4_2="|himail_over.html|"
+ "Overview|"+sLp+"himail_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+sLp+"himail_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=14|"
//+ "Version info|"+cgL+"/versions/himail/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/himail/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/himail/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/himail/higuest.pl?|"
+ "Download|"+sLp+"himail_download.html|";
/* ----------------------------------------------------------------------- */
subPages4_3="|himailpro_over.html|"
+ "Overview|"+sLp+"himailpro_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
//+ "Demos|"+sLp+"xxxx.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=15|"
//+ "Version info|"+cgL+"/versions/himailpro/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/himailpro/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/himailpro/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/himailpro/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages4_4="|himaildb_over.html|"
+ "Overview|"+sLp+"himaildb_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"

+ "Demos|"+sLp+"himaildb_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=16|"
//+ "Version info|"+cgL+"/versions/himaildb/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/himaildb/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/himaildb/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/himaildb/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages4_5="|hifriend_over.html|"
+ "Overview|"+sLp+"hifriend_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+sLp+"hifriend_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=17|"
//+ "Version info|"+cgL+"/versions/hifriend/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hifriend/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hifriend/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hifriend/higuest.pl?|"
+ "Download|"+sLp+"hifriend_download.html|";
/* ----------------------------------------------------------------------- */
subPages4_6="|hifriendpro_over.html|"
+ "Overview|"+sLp+"hifriendpro_over.html|"
//+ "In Detail|"+sLp+"hifriendpro_detail.html|"
+ "Demos|"+sLp+"hifriendpro_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=25|"
//+ "Version info|"+cgL+"/versions/hifriendpro/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hifriendpro/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hifriendpro/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hifriendpro/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages5_2="|hifaq_over.html|"
+ "Overview|"+sLp+"hifaq_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+sLp+"hifaq_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=18|"
//+ "Version info|"+cgL+"/versions/hifaq/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hifaq/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hifaq/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hifaq/higuest.pl?|"
+ "Download|"+sLp+"hifaq_download.html|";
/* ----------------------------------------------------------------------- */
subPages5_3="|hifaqpro_over.html|"
+ "Overview|"+sLp+"hifaqpro_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+sLp+"hifaqpro_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=19|"
//+ "Version info|"+cgL+"/versions/hifaqpro/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hifaqpro/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hifaqpro/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hifaqpro/higuest.pl?|"
+ "Buy Now|"+"http://www.hibyte.co.uk/pages/orderform.html blank|";
/* ----------------------------------------------------------------------- */
subPages6_2="|hiprint_over.html|"
+ "Overview|"+sLp+"hiprint_over.html|"
//+ "In Detail|"+sLp+"xxxx.html|"
+ "Demos|"+sLp+"hiprint_demo.html|"
//+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=20|"
//+ "Version info|"+cgL+"/versions/hiprint/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/hiprint/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/hiprint/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/hiprint/higuest.pl?|"
+ "Download|"+sLp+"hiprint_download.html|";
/* ----------------------------------------------------------------------- */
subPages6_3="|formsense_over.html|"
+ "Overview|"+sLp+"formsense_over.html|"
+ "In Detail|"+sLp+"formsense_detail.html|"
+ "Demos|"+sLp+"formsense_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=21|"
//+ "Version info|"+cgL+"/versions/formsense/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/formsense/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/formsense/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/formsense/higuest.pl?|"
+ "Download Now|"+sLp+"formsense_download.html|";
/* ----------------------------------------------------------------------- */
subPages6_4="|colourcalc_over.html|"
+ "Overview|"+sLp+"colourcalc_over.html|"
+ "In Detail|"+sLp+"colourcalc_detail.html|"
+ "Demos|"+sLp+"colourcalc_demo.html|"
+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=22|"
//+ "Version info|"+cgL+"/versions/colourcalcpro/hiversion.pl|"
+ "FAQ Area|"+cgL+"/faqs/colourcalc/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/colourcalcpro/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/colourcalcpro/higuest.pl?|"
+ "Download|"+sLp+"colourcalc_download.html|";
/* ----------------------------------------------------------------------- */
subPages6_5="|hicalendar_over.html|"
+ "Overview|"+sLp+"hicalendar_over.html|"
//+ "In Detail|"+sLp+"colourcalc_detail.html|"
//+ "Demos|"+sLp+"hicalendar_demo.html|"
//+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=23|"
//+ "Version info|"+cgL+"/versions/colourcalcpro/hiversion.pl|"
//+ "FAQ Area|"+cgL+"/faqs/colourcalc/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/colourcalcpro/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/colourcalcpro/higuest.pl?|"
//+ "Download|"+baseloc+"/pages/http://www.hibyte.co.uk//pages/hicalendardownload.html blank|";
//+ "Download|"+baseloc+"/pages/http://www.hibyte.co.uk//pages/hicalendardownload.html blank|";
+ "Download|"+sLp+"hicalendar_download.html|";
/* ----------------------------------------------------------------------- */
subPages6_6="|hisearch_over.html|"
+ "Overview|"+sLp+"hisearch_over.html|"
//+ "In Detail|"+sLp+"colourcalc_detail.html|"
//+ "Demos|"+sLp+"hicalendar_demo.html|"
//+ "Screenshots|"+cgL+"/albums/hialbum.pl?null=y&ab=23|"
//+ "Version info|"+cgL+"/versions/colourcalcpro/hiversion.pl|"
//+ "FAQ Area|"+cgL+"/faqs/colourcalc/hifaq.pl|"
//+ "Downloads|"+cgL+"/downloads/colourcalcpro/hidocs.pl|"
//+ "Testimonials|"+cgL+"/testim/colourcalcpro/higuest.pl?|"
//+ "Download|"+baseloc+"/pages/http://www.hibyte.co.uk//pages/hicalendardownload.html blank|";
//+ "Download|"+baseloc+"/pages/http://www.hibyte.co.uk//pages/hicalendardownload.html blank|";
+ "Download|"+sLp+"hisearch_download.html|";
/* ----------------------------------------------------------------------- */
function lev3 () {   // alert('lev3');//  pageID,subID,lev3ID alert('l3 '+pageID+' '+subID+' '+lev3ID);
var myArray,astring,aSize,aTitle,aTar,qStr,qEn,aPipe,sLen;
autoloc();     // pageID=(pageID)?pageID:1;  subID=(subID))?subID:1;
sLen=0;        //  alert(pageID +'_'+subID);
var sPageLoc=(!lev3ID ||(lev3ID<1))?100:lev3ID;
//var sPageLoc=lev3ID;
astring=eval("subPages" + pageID +'_'+subID);
if(astring && !(astring == 'undefined')){
myArray= astring.split("|");
// sLen=sLen+myArray[0].length+3;   document.write(sLen);
aTitle=myArray[0].replace(/\s+/g,'&nbsp;');
//if(sLen>80){sLen=0;document.write('<br>');}
if(!(myArray[0]=='undefined')){
document.write('<span style="font-size:11px">');
} // end if(!(myArray[0]=='undefined'))
aSize=myArray.length;
var m=1;  aSize-=1;
for (var i=2;i<(aSize-1);i+=2) {
sLen=sLen+myArray[i].length+3;
//if(sLen>120){sLen=0;document.write('<br>');}
if(myArray[i+1]){myArray[i+1]=myArray[i+1].replace(/\~.*/,'');}
aTitle=myArray[i].replace(/\s+/g,'&nbsp;'); myArray[i+1]=corURL(myArray[i+1]);
aTar=(myArray[i+1].indexOf(' blank')>-1)?' target="blank" ':'';  myArray[i+1]=myArray[i+1].replace(/\s+blank/,'');
aPipe=(i<(aSize-2))?' &#187;&nbsp;':'';
qStr=(!(myArray[i+1]=='undefined') && (m != sPageLoc))?'<a  class="rollv3" href="'+myArray[i+1]+'" '+aTar+'>':'';
qEn=(!(myArray[i+1]=='undefined') && (m != sPageLoc))?'</a>':'';
document.write(qStr + aTitle + qEn + aPipe);
m++;} // end for (var i=0;i<aSize;i++)
document.write('</span>');
}  // end if(astring)
}
/* ----------------------------------------------------------------------- */
function autoloc () {	 // pageID=1;subID=1;lev3ID=l; return 1+'|'+1+'|'+l;
var i,j,p,s,l,lt,fT,myLoc,hSub,lB,uB,mBits,hB,mUrl,zPage,zTrunk,zLen,abnum,abpat;
myLoc=self.location.href;//lB=myLoc.split('?'); myLoc=(lB[0])?lB[0]:myLoc;
myLoc=myLoc.replace(/\/+/g,'/'); fT=0; l=1;  abpat='xxxxx';
if(myLoc.match(/&ab=([0-9]+)/)){abnum=RegExp.$1; 
abpat='&ab='+abnum;
var xabpat = new RegExp("&ab="+abnum, "i");
var yabpat = new RegExp("&ab="+abnum+"[0-9]", "i");
}
if(myLoc.match(/\/$/)){myLoc+='index.html';}   // alert(myLoc);
myLoc=myLoc.replace(/\?.*$/,''); myLoc=myLoc.replace(/\#.*$/,'');
uB=myLoc.split('/');
myLoc='';for(var i=2;i<uB.length;i++){myLoc+='/'+uB[i];}  //alert(myLoc);
for(p=0;p<allPages.length &&(fT<1);p++){   // mains loop
mBits=allPages[p].split('|'); s=0;  //alert(p +' '+mBits);
for(var i=0;i<(mBits.length-1) &&(fT<1);i+=2){s++; // subs loop
mUrl=mBits[i+1].replace(/\/+/g,'/');
if((abpat.match('xx') && mUrl.match(myLoc)) || ((abpat.match('ab')&& mUrl.match(xabpat) && !(mUrl.match(yabpat))))) {fT=1; }
//alert(mUrl);
if(s>1){hSub=eval('subPages'+(p+1)+'_'+(s-1)); if(hSub){
hB=hSub.split('|');  lt=0;
for(var j=0;j<(hB.length-1) &&(fT<1);j+=2){lt++; // lev3 loop
if(hB[j+1]){mUrl=hB[j+1].replace(/\/+/g,'/');
if((abpat.match('xx') && mUrl.match(myLoc)) || ((abpat.match('ab')&& mUrl.match(xabpat) && !(mUrl.match(yabpat)) ))) {fT=1; l=lt-1; }}
} // end  lev3 loop
}  // end if(hSub)
}// end if(s>1)
//alert((p+1)+' '+(s-1));
} // end subs loop
} // end main loop
//alert(myLoc);
s--;
if(fT<1){p=1000;s=1;l=1}	 pageID=p;subID=s;lev3ID=l;  // alert(pageID+' '+subID+' '+lev3ID);
return p+'|'+s+'|'+l;
}
/* ----------------------------------------------------------------------- */
function corURL(ustring){
ustring=ustring.replace(/\/+/g,'/');
ustring=ustring.replace(/^([htpsf]+\:)\//g,"$1\/\/"); return ustring;}
/* ----------------------------------------------------------------------- */
function hnav() {   //	alert('hnav');
autoloc();
var aPageLoc = pageID -1;
aPageLoc=(!aPageLoc ||(aPageLoc<0))?0:aPageLoc;
var myArray,astring,aSize,aTitle,aTar,qStr,qEn,aPipe,sLen;
aSize=(self.allPages)?allPages.length:0;
sLen=0;
for (var i=0;i<aSize;i++) {
astring=(self.allPages)?allPages[i]:'';
myArray= astring.split("|");
sLen=sLen+myArray[0].length+3;
aTitle=myArray[0].replace(/\s+/g,'&nbsp;');
// if(sLen>80){sLen=0;document.write('<br>');}
if(myArray[i+1]){myArray[i+1]=myArray[i+1].replace(/\~.*/,'');}
aTar=(myArray[0].indexOf(' blank')>-1)?' target="blank" ':'';  myArray[0]=myArray[0].replace(/\s+blank/,'');
aPipe='&nbsp;| ';  myArray[3]=corURL(myArray[3]);
qStr=(!(myArray[3]=='undefined') && (i != aPageLoc))?'<a class="rollhn" href="'+myArray[3]+'" '+aTar+'>':'';
qEn=(!(myArray[3]=='undefined') && (i != aPageLoc))?'</a>':'';
document.write('<span style="font-size:11px;font-weight:bold">'+qStr + aTitle + qEn+'</span>' +
'<span style="font-size:10px;font-weight:normal">'+ aPipe +'</span>');
} // end for (var i=0;i<aSize;i++)
}
/* ----------------------------------------------------------------------- */
function breadcrumbs () {   //alert('breadcrumbs'); // pageID,subID
autoloc();
var aPageLoc = pageID -1;
aPageLoc=(!aPageLoc ||(aPageLoc<0))?0:aPageLoc;
var sPageLoc=(!subID ||(subID<1))?1:subID;
var myArray,astring,aSize,aTitle,aTar,qStr,qEn,aPipe,sLen;
sLen=0;
astring=(self.allPages)?allPages[aPageLoc]:'';
if(!astring || (astring == 'undefined')){return;}
myArray= astring.split("|");
// sLen=sLen+myArray[0].length+3;   document.write(sLen);
aTitle=myArray[0].replace(/\s+/g,'&nbsp;');
//if(sLen>80){sLen=0;document.write('<br>');}
if(!(myArray[0]=='undefined')){
document.write('<span style="font-size:11px"><b>'+myArray[0]+'</b>&nbsp;:&nbsp;&#187;&nbsp;');
} // end if(!(myArray[0]=='undefined'))
aSize=myArray.length;
var m=1;
for (var i=2;i<(aSize-1);i+=2) {
sLen=sLen+myArray[i].length+3;
// if(sLen>80){sLen=0;document.write('<br>');}
if(myArray[i+1]){myArray[i+1]=myArray[i+1].replace(/\~.*/,'');}
aTitle=myArray[i].replace(/\s+/g,'&nbsp;');
aTar=(myArray[i+1].indexOf(' blank')>-1)?' target="blank" ':'';  myArray[i+1]=myArray[i+1].replace(/\s+blank/,'');
aPipe=(i<(aSize-2))?' &#187;&nbsp;':'';  myArray[i+1]=corURL(myArray[i+1]);
qStr=(!(myArray[i+1]=='undefined') && (m != sPageLoc))?'<a class="rollbc" href="'+myArray[i+1]+'" '+aTar+'>':'';
qEn=(!(myArray[i+1]=='undefined') && (m != sPageLoc))?'</a>':'';
document.write(qStr + aTitle + qEn + aPipe);
m++;} // end for (var i=0;i<aSize;i++)
document.write('</span>');
}
/* ----------------------------------------------------------------------- */
function blankRow(Hi,Co,Col){Col=(Col)?' bgcolor="'+Col+'"':'';
var hiBit='height="'+Hi+'" style="line-height:'+Hi+'px"';
var spImg='<img src="/software/images/construction/spacer.gif" width="5" height="'+Hi+'">';
Co=(Co)?Co:spImg;
var mRow='<tr '+Col+'><td '+hiBit+' width="15">'+spImg+'</td>'
+ '<td	'+hiBit+' width="115">'+Co+'</td>'
+ '<td	'+hiBit+' width="5">'+spImg+'</td></tr>'; return mRow;}
/* ----------------------------------------------------------------------- */
function vnav () {  //alert('vnav'); // pageID,subID
autoloc();
var aPageLoc = pageID -1;
aPageLoc=(!aPageLoc ||(aPageLoc<0))?0:aPageLoc;
var sPageLoc=(!subID ||(subID<1))?1:subID;
var myArray,astring,aSize,aTitle,aTar,qStr,qEn,xclass,xbul,sSize;
//document.write(vhnstyle
document.write(
'<table cellpadding="0" cellspacing="0" border="0" width="130">'
+ blankRow(1)
);
aSize=(self.allPages)?allPages.length:0;
for (var i=0;i<aSize;i++) {
astring=(self.allPages)?allPages[i]:'';
myArray= astring.split("|");
aTitle=myArray[0].replace(/\s+/g,' ');
if(myArray[i+1]){myArray[i+1]=myArray[i+1].replace(/\~.*/,'');}
aTar=(myArray[0].indexOf(' blank')>-1)?' target="blank" ':'';	myArray[0]=myArray[0].replace(/\s+blank/,'');
aPipe=(i<(aSize-1))?'&nbsp;| ':'';
qStr=(!(myArray[3]=='undefined') && (i != aPageLoc))?'<a class="ahn" href="'+myArray[3]+'" '+aTar+'>':'';
qEn=(!(myArray[3]=='undefined') && (i != aPageLoc))?'</a>':'';
xclass=(i != aPageLoc)?'hahn':'hme';
xbul=(i != aPageLoc)?'&nbsp;':'&#149;';
document.write('<tr valign="middle" align="left">'
//+ '<td class="'+xclass+'" align="center">'+xbul+'hh</td>'
+ '<td colspan="2" class="'+xclass+'">&nbsp;<b>'
+ qStr + aTitle + qEn
+ '</b></td><td  class="'+xclass+'">&nbsp;</td></tr>');
sSize=myArray.length;
var m=1;
for (var t=2;t<(sSize-1);t+=2) {
aTitle=myArray[t].replace(/\s+/g,' ');
aTar=(myArray[t+1].indexOf(' blank')>-1)?' target="blank" ':''; myArray[t+1]=corURL(myArray[t+1]);
qStr=(!(myArray[t+1]=='undefined') && ((m == sPageLoc) && (i == aPageLoc)))?'':'<a class="asn" href="'+myArray[t+1]+'" '+aTar+'>';
qEn=(!(myArray[t+1]=='undefined') && ((m == sPageLoc) && (i == aPageLoc)))?'':'</a>';
xclass=((m == sPageLoc) && (i == aPageLoc))?'sme':'sahn';
xbul=((m == sPageLoc) && (i == aPageLoc))?'&#149;':'<b>::</b>';
document.write('<tr valign="middle" align="left">'
+ '<td class="'+xclass+'" align="center" valign="top">'+xbul+'</td>'
+ '<td class="'+xclass+'"> '
+ qStr + aTitle + qEn
+ '</td><td  class="'+xclass+'">&nbsp;</td></tr>');
m++;} // end for (var i=0;i<aSize;i++)
} // end for (var i=0;i<aSize;i++)
document.write('</table>');
document.write(
'<table cellpadding="0" cellspacing="0" border="0" width="130">'
+ blankRow(1)
+ '<td width="130" bgcolor="#353B8F" colspan="2"><span style="color:#FFFFFF; font-size:12px;"><b>&nbsp;Main Site</b></span></td>'
+ '<td width="5" bgcolor="#353B8F">&nbsp;</td></tr>'
+ blankRow(5)+ blankRow(1,'','#BB384A')+ blankRow(1)
+ '<tr><td width="15"><img src="/software/images/construction/menu_r_dot.gif" width="15" height="15"></td>'
+ '<td width="115"><a href="http://www.hibyte.co.uk" class="rollv3"><b>Home</b></a></td>'
+ '<td width="5">&nbsp;</td></tr>'
+ blankRow(5)+ blankRow(1,'','#BB384A')+ blankRow(1)
+ '<tr><td width="15"><img src="/software/images/construction/menu_r_dot.gif" width="15" height="15"></td>'
+ '<td width="115"><a href="http://www.hibyte.co.uk/pages/about.html" class="rollv3"><b>About Hibyte</b></a></td>'
+ '<td width="5">&nbsp;</td></tr>'
+ blankRow(5)+ blankRow(1,'','#BB384A')+ blankRow(1)
+ '<tr><td width="15"><img src="/software/images/construction/menu_r_dot.gif" width="15" height="15"></td>'
+ '<td width="115"><a href="http://www.hibyte.co.uk/pages/contact.html" class="rollv3"><b>Contact Us</b></a></td>'
+ '<td width="5">&nbsp;</td></tr>'
+ blankRow(5)+ blankRow(1,'','#BB384A')+ blankRow(1)
+ '<tr><td width="15"><img src="/software/images/construction/menu_r_dot.gif" width="15" height="15"></td>'
+ '<td width="115"><a href="http://www.hibyte.co.uk/community/phpbb2/index.php" class="rollv3"><b>Forums</b></a></td>'
+ '<td width="5">&nbsp;</td></tr>'
+ blankRow(5)
+ blankRow(1,'','#BB384A')
);
document.write('</table>');
}
/* ----------------------------------------------------------------------- */
function Is() {
agent  = navigator.userAgent.toLowerCase();
plat = navigator.platform.toLowerCase();
this.mac   = (plat.indexOf('mac')	!=   -1);
this.win   = (plat.indexOf('win')	!=   -1);
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);
this.ns    = ((agent.indexOf('mozilla')   !=   -1) &&
((agent.indexOf('spoofer')   ==   -1) &&
(agent.indexOf('compatible') ==   -1)));
this.ns4   = (this.ns && (this.major	  ==	4));
this.ns6   = (this.ns && (this.major	  >=	5));
this.ie    = (agent.indexOf("msie")	  !=   -1);
this.ie3   = (this.ie && (this.major	  < 4));
this.ie4   = (this.ie && (this.major	  ==	4) &&
(agent.indexOf("msie 5.0")   ==   -1));
this.ie5   = (this.ie && (this.major	  ==	4) &&
(agent.indexOf("msie 5.0")   !=   -1));
this.ie55  = (this.ie && (this.major	  ==	4) &&
(agent.indexOf("msie 5.5")   !=   -1));
this.ie6   = (this.ie && (agent.indexOf("msie 6.0")!=-1) );
}
var is = new Is();
//if (is.mac){ alert('mac'); }
//if (is.win){alert('win');}
var tc = 0
/* ----------------------------------------------------------------------- */
function textCheck(){
if(tc>0) {
var cStr='Unsaved text changes will be lost if you change an image now.\n'
+ 'Click "Cancel" and then "Update page" to save text changes first.\n'
+ 'Click "OK" to proceed with image selection and upload.'
if (!confirm(cStr)) {return false;} }
return true;

}
tc=0;
var StoreWindow = null;
var proc= '<span style="font-family:sans-serif;font-size:16pt;color:#3638bd">Processing'
+ ' - please wait</span>';
/* ----------------------------------------------------------------------- */
function ST_note(theURL,uWidth,uHeight,sbar,res,locH,locV,StoreWindow) {
var tk=textCheck();  if(tk != true){return false;}
var attr='scrollbars='+sbar+',resizable='+res+',width=' + uWidth + ',height=' +uHeight
if(!window.StoreWindow || window.StoreWindow.closed) {
if(is.mac && is.ie) {
StoreWindow = window.open(theURL,StoreWindow,attr);
StoreWindow.focus();
} else {
StoreWindow = window.open('',StoreWindow,attr);
StoreWindow.moveTo(locH,locV)
StoreWindow.document.close();
StoreWindow.document.write(proc);
StoreWindow.focus()
StoreWindow.location.href = (theURL)
} // end else
} else {
StoreWindow.location.href = (theURL)
StoreWindow.focus()
}
return StoreWindow;
}
/* ----------------------------------------------------------------------- */
function tchange () {
tc = 1;
}
/* ----------------------------------------------------------------------- */
function goHere(pagenow) {
if(pagenow != "#") {
window.location.href=pagenow;
}
return true;
}
/* ----------------------------------------------------------------------- */
function selPage(thisSel,mode,match,message,oldVal) {
var selVal=thisSel.options[thisSel.selectedIndex].value;
var changePage=0;
if(mode==1){
if(selVal.indexOf(match) != -1){changePage=1;}
else if(confirm(message)){changePage=1;}
else{changePage=0;}
} // end if(mode==1)
else if(mode==2){
if(selVal == match){changePage=1;}
else if(confirm(message)){changePage=1;}
else{changePage=0;}
} // end if(mode==2)
//alert(changePage);
if(changePage>0){document.forms[0].submit();return true;}
else {
for(var i=0;i<thisSel.options.length;i++){
if(thisSel.options[i].value == oldVal){
thisSel.selectedIndex=i;  i=thisSel.options.length;}
} // end for(var i=0;i<thisSel.options.length;i++)
return false;
} // end else
}
/* ----------------------------------------------------------------------- */
function repMe(str,strIn,strOut) {
var regexp = eval("/" + strIn + "/gi");
var nstr=str.replace(regexp, strOut);
return nstr;
}
/* ----------------------------------------------------------------------- */
function showdate(facecol,fsize){
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var mydate=new Date()
var year=mydate.getYear()
if (year>99) {year=1900+year;}
if (year>3000) {year=year-1900;}
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>12){dn="PM";hours=hours-12;}
if (hours==0) {hours=12;}
if (minutes<=9){minutes="0"+minutes;}
if (seconds<=9){seconds="0"+seconds;}
var cdate=dayarray[day]+' '+daym+' '+montharray[month]+' '+year
document.write('<span style="color:#' + facecol + ';font-size:' + fsize + ';">' + cdate + '&nbsp;</span>') ;
}
/* ----------------------------------------------------------------------- */
function xcheckdom(checkMe,nURL,nBlank,nScript,winName){
//alert(checkMe);
var maxdom = 8-1;
var maxchar = 300;
var field = checkMe.domain;
var userIn = (field.value);
var nlArray=userIn.match(/\n/g);
var rtArray=userIn.match(/\r/g);
var spArray=userIn.match(/[A-Za-z0-9] [A-Za-z0-9]/g);
if (rtArray) { if (rtArray.length > maxdom ) {alert("Please enter fewer names");
field.focus(); return false; } }
if (nlArray) {if (nlArray.length > maxdom ) {alert("Please enter fewer	names");
field.focus(); return false;	} }
if (spArray) {if (spArray.length > maxdom ) {alert("Please enter fewer	names");
field.focus(); return false;	} }
var proc=userIn.replace(/\s*/g, "") ;
proc=proc.replace(/\n*/g, "") ;
proc=proc.replace(/\r*/g, "") ;
proc=proc.replace(/\-*/g, "") ;
if (proc == "")
{
alert("Please enter at least one domain name");
field.focus();
return false;
}
var strlen=proc.length;
if (strlen > maxchar)
{
alert("Please input less data");
field.focus();
return false;
}
var bans=new Array('\\','/','+','(',')','[',']','{','}','$','^','*','|',',','--','?');
var Blen=bans.length;
for (var i = 0; i < Blen; i++) {
if(proc.indexOf(bans[i]) != -1) {
alert('Illegal character - please remove  " ' + bans[i] +' "');
field.focus();
return false;
} }
var allow='abcdefghijklmnopqrstuvwxyz01234567890-.';
for (var i = 0; i <= strlen; i++) {
var xtest=proc.charAt(i);
var regexp=eval("/" + xtest + "/i");
var fMe=allow.match(regexp);
if(xtest) {
if (!fMe) {
alert('Illegal character - please remove  " ' + xtest +' "');
field.focus();
return false;
}}}
var mBlank=nURL + nBlank; var mScript=nURL +nScript;
var wobj=ST_note(mBlank,600,380,'Yes','Yes',10,10,winName);
wobj.document.close();
wobj.document.write('<form name="form1" method="POST" action="'+mScript+'">'
+ '<input type="hidden" name="domain" value="'+userIn+'"></form>');
var fty=wobj.document.forms[0];
fty.submit();
return false;
}
/* ----------------------------------------------------------------------- */
function formCheck(thisForm,stdCheck,emailCheck) {
if(!(textC(thisForm,emailCheck,1))){return false;}
if(!(textC(thisForm,stdCheck))){return false;}
return true;}
function textC(thisForm,mstr,checkEpat){ var xarr=mstr.split(',');
var ePat=/^([a-zA-Z0-9\.\-\_]+)\@([a-zA-Z0-9\.\-\_]+)\.([a-zA-Z]{2,4})$/;
for(var i=0;i<xarr.length;i++){var yarr=xarr[i].split('|');
var hNam=yarr[0];
if(thisForm.elements[hNam]){
var hLen=thisForm.elements[hNam].length;
var hType=(thisForm.elements[hNam] && hLen >1)?thisForm.elements[hNam][0].type:'';
hType=(hType)?hType:
(thisForm.elements[hNam])?thisForm.elements[hNam].type:'';
var isSel=(hType.indexOf('select')>-1)?1:'';
var comtext=(isSel)?'select':'complete';
if(hType=='checkbox' || hType=='radio'){
var cCheck=0;
if(hLen>1){
for(var rc=0;rc<hLen;rc++){
if(thisForm.elements[hNam][rc].checked){cCheck=1;}
} // end for(var rc=0;rc<hLen;rc++)
} // end if(hLen>1)
else if(thisForm.elements[hNam].checked){cCheck=1;}
if(cCheck<1){alert('Please check '+yarr[1]); return false;}
} else { //  if(hType=='checkbox' etc else
var hVal='';
var focusbit=(hLen>1 && !isSel)?thisForm.elements[hNam][0]:thisForm.elements[hNam];
if(hLen>1 && !isSel){
for (var iz=0;iz<hLen;iz++){hVal=hVal+thisForm.elements[hNam][iz].value+' ';}
} else {hVal=thisForm.elements[hNam].value; }
var rhVal=hVal.replace(/[\s\r\n]/g,'');
if(rhVal.length<1){
alert('Please '+comtext+' '+yarr[1]);focusbit.focus();return false;}
}
if(checkEpat){
hVal=hVal.replace(/[\s\r\n\;\:\,]/g,' ');
hVal=hVal.replace(/[\s]+/g,' '); hVal=hVal.replace(/^[\s]/g,''); hVal=hVal.replace(/[\s]$/g,'');
hVal=hVal.replace(/[\s]/g,','); var mxArray=hVal.split(',');
for(var ix=0;ix<mxArray.length;ix++){
if(!(mxArray[ix].match(ePat))){
alert(yarr[1] +' - '+mxArray[ix]+' seems incorrect');thisForm.elements[hNam].focus();
return false;}
} // end for(var ix=0;ix<mxArray.length;ix++)
} // end if(checkEpat)
} // end if(thisForm.elements[hNam])
} // end enclosing for loop
return true;}
/* ----------------------------------------------------------------------- */
function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
/* ----------------------------------------------------------------------- */
function tmt_findObj(n){
var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
}else{x=document.getElementById(n)}return x;
}
/* ----------------------------------------------------------------------- */
function MM_showHideLayers() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){
for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];
v=(v=='show')?'visible':(v='hide')?'hidden':v;
if(obj)obj.style.visibility=v;}} else{
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null){ v=args[i+2];
if (obj.style) { obj=obj.style;
v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }}
}
/* ----------------------------------------------------------------------- */
function checkMe(fVal) {
  if(!fVal){fVal='formsearch';} //alert(fVal);
var pull=eval(document.forms(fVal).keywords);
if (!pull.value || pull.value == 'Enter Search Here') {
alert("Please enter search term(s)");
return false;
} else {
return true;
}
}
