/********************************************************************************///

//window.onscroll = Keep_UP;//menu movement

//window.onload = res_wait;//google resize

var br0 = false;

if(typeof(window['jssrc']) != "undefined"){
 var ehead = DEF.GETN("head");

  for(js = 0;js < jssrc.length; js++){
  //ehead[0].innerHTML = ehead[0].innerHTML + ('<script type="text/javascript" language="JavaScript" src="' + jssrc[js] + '" ></scr' + 'ipt>\n');
var s = document.createElement('script');
//s.setAttribute('type','text/javascript');
//s.setAttribute('language','JavaScript');
//s.setAttribute('src',jssrc[js]);
//ehead[0].appendChild(s);
  //document.write('<script type="text/javascript" src="' + jssrc[js] + '"></scr' + 'ipt>');
   }
}

var SA = new Array();//SA = states array

SA[0] = '';

SA[1] = 'Alabama';

SA[2] = 'Alaska';

SA[3] = '';

SA[4] = 'Arizona';

SA[5] = 'Arkansas';

SA[6] = 'California';

SA[7] = '';

SA[8] = 'Colorado';

SA[9] = 'Connecticut';

SA[10] = 'Delaware';

SA[11] = 'District of Columbia';

SA[12] = 'Florida';

SA[13] = 'Georgia';

SA[14] = '';

SA[15] = 'Hawaii';

SA[16] = 'Idaho';

SA[17] = 'Illinois';

SA[18] = 'Indiana';

SA[19] = 'Iowa';

SA[20] = 'Kansas';

SA[21] = 'Kentucky';

SA[22] = 'Louisana';

SA[23] = 'Maine';

SA[24] = 'Maryland';

SA[25] = 'Massachusetts';

SA[26] = 'Michigan';

SA[27] = 'Minnesota';

SA[28] = 'Mississippi';

SA[29] = 'Missouri';

SA[30] = 'Montana';

SA[31] = 'Nebraska';

SA[32] = 'Nevada';

SA[33] = 'New Hampshire';

SA[34] = 'New Jersey';

SA[35] = 'New Mexico';

SA[36] = 'New York';

SA[37] = 'North Carolina';

SA[38] = 'North Dakota';

SA[39] = 'Ohio';

SA[40] = 'Oklahoma';

SA[41] = 'Oregon';

SA[42] = 'Pennsylvania';

SA[43] = '';

SA[44] = 'Rhode Island';

SA[45] = 'South Carolina';

SA[46] = 'South Dakota';

SA[47] = 'Tennessee';

SA[48] = 'Texas';

SA[49] = 'Utah';

SA[50] = 'Vermont';

SA[51] = 'Virgina';

SA[52] = '';

SA[53] = 'Washington';

SA[54] = 'West Virgina';

SA[55] = 'Wisconsin';

SA[56] = 'Wyoming';

SA[57] = 'Puerto Rico';



var staits = '<select name="state" size="1" value="State" class="cs" style="height:20px;"><option value="State">State<ion>';



var incs = 0;



for(incs=0;incs<SA.length;incs++){

    if(SA[incs] != "")

        staits += '<option value="'+incs+'">'+SA[incs]+'<ion>';

}

var states_list = (staits + '</select>');

var hell;

var intervals = new Array();

/********************************faqs data************************************************/





 /************register functions here******************/

    function Reg_Funcs(){
    //testimonials load
      if(window.SNF && typeof(window['SNF']) != "undefined")
        Retrieve_Tests();

    //search page results resize

       res_wait();

    //browser sensitive adjustments

       br0 = (navigator.appName == "Microsoft Internet Explorer")? false:true ;

       //Brow_Adjust();

    //retrieve basket info

       //Load_Basket();

       ACore.Ajax_Call(strRootDirectory +'CoreFiles/database.php,db266203560,2');

    // sliding menu initiation

     hell = new SEP();

     hell.constructor();
       
       return false;

    }



 /************register functions here******************/



function Brow_Adjust(){
     var o1 = Get_EBI("icount");
     var o2 = Get_EBI("main_p");
     if(o2)
        o2.style.zIndex = "1";
     var o3 = Get_EBI("leftmenu2");
     //if the browser is not firefox
   if(!br0){


     //var o2 = Get_EBI("k_opts");

     if(o1){
     var NV = navigator.appVersion;
     var MStart = 0;
     if((MStart = NV.indexOf('MSIE')) > 0 ){
       var mstr = NV.slice(MStart,(MStart + 8));
       MStart = mstr.indexOf(".");
       var FV = mstr.slice((MStart - 1), MStart);
       dis = (FV == 6)? 675:695 ;
       if(FV == 6){
         Move_Element(o1,false,false,false,605);
         o1.align = "center";
         if(o2){
           Move_Element(o2,120,false,false,false);
           Move_Element(o2,false,false,false,290);
         }
         if(o3)
            Move_Element(o3,120,false,false,false);
       }
       if(FV == 7){
         Move_Element(o1,false,false,false,605);
         o1.align = "center";
         if(o2){
           Move_Element(o2,120,false,false,false);
           Move_Element(o2,false,false,false,290);
         }
         if(o3)
            Move_Element(o3,120,false,false,false);
       }
       if(FV == 8){
         Move_Element(o1,false,false,false,795);
         if(o2){
           Move_Element(o2,100,false,false,false);
           Move_Element(o2,false,false,false,290);
         }
         if(o3)
            Move_Element(o3,100,false,false,false);
       }
       else{
         Move_Element(o1,false,false,false,695);
       }
     }
     }
     //if(o2)
     //Move_Element(o2,false,false,false,1);
   }
   else{
     //the browser is netscape/firefox or webkit
     if(o1){
       if(o2)
        Move_Element(o2,100,false,false,false);
     Move_Element(o1,false,false,false,800);
     }
   //ftm();
   }
   return false;
}



function Move_Element(obj,t,r,b,l){

    if(obj){

        if(t)

            obj.style.top = t+"px";

        if(r)

            obj.style.right = r+"px";

        if(b)

            obj.style.bottom = b+"px";

        if(l)

            obj.style.left = l+"px";

    }

  return false;

}



function Get_EBI(id){

   var ebi;

    if(ebi = document.getElementById(id))

       return ebi;

    else

       return false;

}

function Kill_Crediv(TP,id){
TP.parentNode.removeChild(TP);
faqsa[id] = 0;
}

//set the faqsa array
var faqsa = new Array();
function CreDiv(container,id){
        if((!faqsa[id]) || faqsa[id] < 1){
        faqsa[id] = 1;

            var DV = document.createElement("div");

            container.appendChild(DV);
            container.parentNode.style.marginLeft = '20px';
            DV.innerHTML = mess[id]+'<br /><br /><input type="button" onclick="Kill_Crediv(this.parentNode,'+id+')" value="Close" style="background-color:#99CCCC;height:19px;font-size:12px;" />';
		
            DV.style.color = "#000000";

            DV.style.border = "solid 2px #33CC99";

            DV.style.outline = "solid 2px #FFFFFF";

            DV.style.backgroundColor = "#DFDFFF";

            DV.style.padding = "7px 7px 7px 7px";

            DV.style.width = "600px"; //
            DV.style.marginTop = "20px"; //
            DV.style.height = "100%";

            DV.style.fontFamily="verdana";

            DV.style.fontSize="13px";

        }
  }



/*******************************faqs data*************************************************/





/*******************************forms in var form*************************************************/

var country = '<option value="Country">Country<ion><option value="AU">Australia<ion>		<option value="NZ">New Zealand<ion><option value="US">United States<ion><option value="GB">United Kingdom<ion><option value="JP">Japan<ion><option value="AF">Afghanistan<ion><option value="AG">Antigua and Barbuda<ion><option value="AI">Anguilla<ion><option value="AL">Albania<ion><option value="AM">Armenia<ion>	<option value="DZ">Algeria<ion>	<option value="AD">Andorra<ion>	<option value="AO">Angola<ion>	<option value="AR">Argentina<ion><option value="AW">Aruba<ion><option value="AT">Austria<ion><option value="BS">Bahamas<ion><option value="BH">Bahrain<ion>	<option value="BD">BBangladesh<ion>	<option value="BB">Barbados<ion><option value="BE">Belgium<ion>	<option value="BZ">Belize<ion><option value="BM">Bermuda<ion><option value="BT">Bhutan<ion><option value="BO">Bolivia<ion><option value="BW">Botswana<ion><option value="BR">Brazil<ion><option value="BN">Brunei<ion><option value="BG">Bulgaria<ion><option value="BI">Burundi<ion><option value="KH">Cambodia<ion><option value="CA">Canada<ion><option value="CV">Cape Verde<ion><option value="KY">Cayman Islands<ion><option value="CF">Central African Republic<ion><option value="CL">Chile<ion><option value="CN">China<ion><option value="CO">Colombia<ion><option value="KM">Comoros<ion><option value="CR">Costa Rica<ion><option value="HR">Croatia<ion><option value="CU">Cuba<ion><option value="CY">Cyprus<ion><option value="CZ">Czech Republic<ion><option value="DK">Denmark<ion><option value="DJ">Djibouti<ion><option value="DO">Dominican Republic<ion><option value="NL">Netherlands<ion><option value="EC">Ecuador<ion><option value="EG">Egypt<ion><option value="SV">El Salvador<ion><option value="EE">Estonia<ion><option value="ET">Ethiopia<ion><option value="FK">Falkland Islands<ion><option value="FJ">Fiji<ion><option value="FI">Finland<ion>	<option value="FR">France<ion><option value="GM">Gambia<ion><option value="DE">Germany<ion><option value="GH">Ghana<ion><option value="GI">Gibraltar<ion><option value="GR">Greece<ion><option value="GT">Guatemala<ion><option value="GN">Guinea<ion><option value="GY">Guyana<ion><option value="HT">Haiti<ion><option value="HN">Honduras<ion><option value="HK">Hong Kong<ion><option value="HU">Hungary<ion><option value="IS">Iceland<ion><option value="IN">India<ion><option value="ID">Indonesia<ion><option value="IR">Iran<ion><option value="IQ">Iraq<ion><option value="IE">Ireland<ion><option value="IL">Israel<ion><option value="IT">Italy<ion><option value="JM">Jamaica<ion><option value="JO">Jordan<ion><option value="KZ">Kazakhstan<ion><option value="KE">Kenya<ion><option value="KW">Kuwait<ion><option value="LA">Laos<ion><option value="LV">Latvia<ion><option value="LB">Lebanon<ion><option value="LS">Lesotho<ion><option value="LR">Liberia<ion><option value="LY">Libya<ion><option value="LT">Lithuania<ion><option value="LU">Luxembourg<ion><option value="MO">Macao<ion><option value="MG">Madagascar<ion><option value="MW">Malawi<ion><option value="MY">Malaysia<ion><option value="MV">Maldives<ion><option value="MT">Malta<ion><option value="MR">Mauritania<ion><option value="MU">Mauritius<ion><option value="MX">Mexico<ion><option value="MN">Mongolia<ion><option value="MA">Morocco<ion><option value="MZ">Mozambique<ion><option value="MM">Myanmar<ion><option value="AN">Netherlands Antilles<ion><option value="NA">Namibia<ion><option value="NP">Nepal<ion><option value="NI">Nicaragua<ion><option value="NG">Nigeria<ion><option value="KP">North Korea<ion><option value="NO">Norway<ion><option value="OM">Oman<ion><option value="PK">Pakistan<ion><option value="PA">Panama<ion><option value="PG">Papua New Guinea<ion><option value="PY">Paraguay<ion><option value="PE">Peru<ion><option value="PH">Philippines<ion>	<option value="PL">Poland<ion><option value="PT">Portugal<ion><option value="QA">Qatar<ion><option value="RO">Romania<ion><option value="RU">Russia<ion><option value="WS">Samoa<ion><option value="ST">Sao Tome/Principe<ion><option value="SA">Saudi Arabia<ion><option value="SC">Seychelles<ion><option value="SL">Sierra Leone<ion><option value="SG">Singapore<ion><option value="SK">Slovakia<ion><option value="SI">Slovenia<ion><option value="SB">Solomon Islands<ion><option value="SO">Somalia<ion><option value="ZA">South Africa<ion>	<option value="KR">South Korea<ion><option value="ES">Spain<ion><option value="LK">Sri Lanka<ion><option value="SH">Saint Helena<ion><option value="SD">Sudan<ion><option value="SR">Suriname<ion><option value="SZ">Swaziland<ion><option value="SE">Sweden<ion><option value="CH">Switzerland<ion><option value="SY">Syria<ion><option value="TW">Taiwan<ion><option value="TZ">Tanzania<ion><option value="TH">Thailand<ion><option value="TO">Tonga<ion><option value="TT">Trinidad/Tobago<ion><option value="TN">Tunisia<ion><option value="TR">Turkey<ion><option value="UG">Uganda<ion><option value="UA">Ukraine<ion><option value="UY">Uruguay<ion><option value="AE">United Arab Emirates<ion><option value="VU">Vanuatu<ion><option value="VE">Venezuela<ion><option value="VN">Vietnam<ion><option value="ZM">Zambia<ion><option value="ZW">Zimbabwe<ion>';





var form_user = new Array();



//<input type="text" value="State" onfocus="check_value(5,this)" onblur="check_value(5,this)" class="cs"  />





form_user[0] = '<font style="color:#336699;font-size:20px;">Sign up for a free trial account today!</font><br /><input type="text" value="Email" onfocus="check_value(0,this)" onblur="check_value(0,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Username" onfocus="check_value(1,this)" onblur="check_value(1,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Password" onfocus="check_value(2,this)" onblur="check_value(2,this)" class="cs"  /><br /><input type="text" value="Confirm Password" onfocus="check_value(3,this)" onblur="check_value(3,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Address" onfocus="check_value(4,this)" onblur="check_value(4,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><select name="country" size="1" value="Country" class="cs" style="height:20px;" onchange="Enable5(this.form)">'+country+'</select><font style="font-size:9px;color:#A80022;">*</font><br />'+states_list+'<font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="City" onfocus="check_value(7,this)" onblur="check_value(7,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Zip Code" onfocus="check_value(8,this)" onblur="check_value(8,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Telephone" onfocus="check_value(9,this)" onblur="check_value(9,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><span style="position:static;top:-20px;" id="sub_button" name="sub_button"><input type="button" value="Submit" onclick="Validate(this.form)" style="height:17px;font-size:9px;" /></span>&nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size:9px;color:#A80022;">* Denotes required feild.</font><br />';







form_user[1] = '<font style="color:#336699;font-size:20px;">Sign up for a free trial account today!</font><br /><input type="text" value="Email" onfocus="check_value(0,this)" onblur="check_value(0,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Username" onfocus="check_value(1,this)" onblur="check_value(1,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Password" onfocus="check_value(2,this)" onblur="check_value(2,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Confirm Password" onfocus="check_value(3,this)" onblur="check_value(3,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Address" onfocus="check_value(4,this)" onblur="check_value(4,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><select name="country" size="1" value="Country" class="cs" style="height:20px;" onchange="Enable5(this.form)">'+country+'</select><font style="font-size:9px;color:#A80022;">*</font><br />'+states_list+'<font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="City" onfocus="check_value(7,this)" onblur="check_value(7,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Zip Code" onfocus="check_value(8,this)" onblur="check_value(8,this)" class="cs"  /><font style="font-size:9px;color:#A80022;">*</font><br /><input type="text" value="Telephone" onfocus="check_value(9,this)" onblur="check_value(9,this)" class="cs"  /><br /><span style="position:static;top:-20px;" id="sub_button" name="sub_button"><input type="button" value="Submit" onclick="Validate(this.form)" style="height:17px;font-size:9px;" /></span>&nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size:9px;color:#A80022;">* Denotes required feild.</font><br />';



function Enable5(TF){

   if(TF[5].value == "US")

      TF[6].disabled = false;

   else

      TF[6].disabled = true;

}



var old_bod = 0;

function swap_form(f){

   var qform = document.getElementById("qsign");

   if(qform)

     qform.innerHTML = form_user[f];

     but_bod[f].style.backgroundColor = "#CCCCCC";

     but_bod[f].style.color = "#000000";

    // alert(but_bod[f].style.backgroundColor);

     but_bod[f].onmouseover = function(){};

     but_bod[f].onmouseout = function(){};

     if(f != old_bod){

        but_bod[old_bod].style.backgroundColor = "#5C5C5C";

        but_bod[old_bod].style.color = "#FFFFFF";

        but_bod[old_bod].onmouseover = function(){this.style.backgroundColor = "#CCCCCC";this.style.color = "#000000";};

        but_bod[old_bod].onmouseout = function(){this.style.backgroundColor = "#5C5C5C";this.style.color = "#CCCCCC";};

        old_bod = f;

        }

        assign();

}

/*******************************forms in var form*************************************************/



/**************form handling***********************/

 var brow = null;

  var form_vals = new Array();

  form_vals[0] = 'Email';

  form_vals[1] = 'Username';

  form_vals[2] = 'Password';

  form_vals[3] = 'Confirm Password';

  form_vals[4] = 'Address';

  form_vals[5] = 'Country';

  form_vals[6] = 'State';

  form_vals[7] = 'City';

  form_vals[8] = 'Zip Code';

  form_vals[9] = 'Telephone';



  function check_value(i,t){

     if(t.value == form_vals[i])

        t.value = '';

     else{

        if(t.value == ''){

        /*

            if(i == 2 || i == 3){

               //var ti = t.cloneNode(true);

            //ti.setAttribute("type","text");

            var elem = frm.myInput;

		var txt = elem.value;

		var nxt = elem.nextSibling;



		frm.removeChild(elem);

		var passwd_field = document.createElement("INPUT");

		passwd_field.setAttribute("type", "password");

		passwd_field.setAttribute("size", "40");

		passwd_field.setAttribute("value", txt);



		frm.insertBefore(passwd_field, nxt);

            //alert(ti.type);

            //ti.type = 'text';

            //t.parentNode.replaceChild(ti,t);

            }

            */

            t.value = form_vals[i];

            }

        else

            t.className = "";



     }





  }



  var error_list = '';

  var valid_numbers = new Array('0','1','2','3','4','5','6','7','8','9','-','.','@','_');

  var valid_letters = new Array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','-','.','@','_');

  function Validate(TF){

    var fail_flag = 0;

    var pass_validation = {'one':1};

    var OA = 0;

      for(inc = 0;inc < TF.length;inc++){

          if(TF[inc].fix > 0){

            if((TF[inc].value == form_vals[inc] || TF[inc].value == "" || (inc == 5 || inc == 6)) && (inc != 2 && inc != 3  )){

                if(inc == 6 && TF[5].value == "US" && TF[inc].value == form_vals[inc]){

                    TF[inc].style.backgroundColor = "#FF5555";

                    TF[inc].style.color = "#A80022";

                    fail_flag++;

                    alert("Please select a state.");

                }

                else if(inc == 6 && TF[5].value == "US" && TF[inc].value != form_vals[inc]){

                    TF[5].style.backgroundColor = "#00B95C";

                    TF[5].style.color = "#006421";

                    pass_validation[form_vals[inc]] = TF[inc].value;

                    OA++;

                    TF[inc].style.backgroundColor = "#00B95C";

                    TF[inc].style.color = "#006421";

                    pass_validation[form_vals[inc]] = TF[inc].value;

                    OA++;

                }

                else if(inc == 6 && TF[5].value != "US" && TF[5].value != form_vals[5]){

                    TF[5].style.backgroundColor = "#00B95C";

                    TF[5].style.color = "#006421";

                    pass_validation[form_vals[inc]] = TF[inc].value;

                    OA++;

                    TF[inc].style.backgroundColor = "#00B95C";

                    TF[inc].style.color = "#006421";

                    pass_validation[form_vals[inc]] = TF[inc].value;

                    OA++;

                }

                else if(inc == 5 && TF[inc].value == form_vals[inc]){

                   TF[inc].style.backgroundColor = "#FF5555";

                    TF[inc].style.color = "#A80022";

                    fail_flag++;

                }

                else if(inc == 5 && TF[inc].value != form_vals[inc]){

                   TF[5].style.backgroundColor = "#00B95C";

                    TF[5].style.color = "#006421";

                    pass_validation[form_vals[inc]] = TF[inc].value;

                    OA++;

                    TF[6].disabled = "true";

                }



                else{

               TF[inc].style.backgroundColor = "#FF5555";

               TF[inc].style.color = "#A80022";

               fail_flag++;

               }

            }

            else{

                if(inc != 2 && inc != 3 && old_bod == 1){



                    TF[inc].style.backgroundColor = "#00B95C";

                    TF[inc].style.color = "#006421";

                    pass_validation[form_vals[inc]] = TF[inc].value;

                    OA++;

                }

                if(inc == 2 && inc == 3 && old_bod == 0){

                    TF[inc].style.backgroundColor = "#00B95C";

                    TF[inc].style.color = "#006421";

                    pass_validation[form_vals[inc]] = TF[inc].value;

                    OA++;

                }

                else{

                    TF[inc].style.backgroundColor = "#00B95C";

                    TF[inc].style.color = "#006421";

                    pass_validation[form_vals[inc]] = TF[inc].value;

                    OA++;

                }

            }

            if(inc == 2 || inc == 3){

              if(old_bod == 1 && inc == 2){

               if(TF[inc].value == TF[(inc + 1)].value){

                  TF[inc].style.backgroundColor = "#00B95C";

                  TF[inc].style.color = "#006421";

                  TF[(inc + 1)].style.backgroundColor = "#00B95C";

                  TF[(inc + 1)].style.color = "#006421";

                  pass_validation[form_vals[inc]] = TF[inc].value;

                  OA++;

               }

               else{

                  alert("Your passwords did not match, please retype them.");

                  TF[inc].style.backgroundColor = "#FF5555";

                  TF[inc].style.color = "#A80022";

                  TF[(inc + 1)].style.backgroundColor = "#FF5555";

                  TF[(inc + 1)].style.color = "#A80022";

                  fail_flag++;

               }

              }

              if(old_bod == 0){

                if(inc == 2){

                  if(TF[inc].value == '' || TF[inc].value == form_vals[inc]){

                         TF[inc].style.backgroundColor = "#00B95C";

                         TF[inc].style.color = "#006421";

                         TF[(inc + 1)].style.backgroundColor = "#00B95C";

                         TF[(inc + 1)].style.color = "#006421";

                         pass_validation[form_vals[inc]] = TF[inc].value;

                         OA++;

                  }

                  else{

                      if(Validate_phone(TF[inc].value,inc)){



                         TF[inc].style.backgroundColor = "#00B95C";

                         TF[inc].style.color = "#006421";

                         TF[(inc + 1)].style.backgroundColor = "#00B95C";

                         TF[(inc + 1)].style.color = "#006421";

                         pass_validation[form_vals[inc]] = TF[inc].value;

                         OA++;

                      }

                      else{

                        TF[inc].style.backgroundColor = "#FF5555";

                        TF[inc].style.color = "#A80022";

                        TF[(inc + 1)].style.backgroundColor = "#FF5555";

                        TF[(inc + 1)].style.color = "#A80022";

                        fail_flag++;

                      }

                  }

                }

                if(inc == 3){

                  if(TF[inc].value == '' || TF[inc].value == form_vals[inc]){

                     TF[inc].style.backgroundColor = "#FF5555";

                     TF[inc].style.color = "#A80022";

                     TF[(inc + 1)].style.backgroundColor = "#FF5555";

                     TF[(inc + 1)].style.color = "#A80022";

                     fail_flag++;

                  }

                  else{

                     TF[inc].style.backgroundColor = "#00B95C";

                     TF[inc].style.color = "#006421";

                     TF[(inc + 1)].style.backgroundColor = "#00B95C";

                     TF[(inc + 1)].style.color = "#006421";

                     pass_validation[form_vals[inc]] = TF[inc].value;

                     OA++;

                  }

                }



              }

            }



          }



          if(inc == 9){

            if(Validate_phone(TF[9].value,inc)){

               TF[inc].style.backgroundColor = "#00B95C";

               TF[inc].style.color = "#006421";

               pass_validation[form_vals[inc]] = TF[inc].value;

               OA++;

            }

            else{

               TF[inc].style.backgroundColor = "#FF5555";

               TF[inc].style.color = "#A80022";

                  fail_flag++;

            }



             }

          if(inc == 8){

            if(Validate_zip(TF[inc].value)){

              TF[inc].style.backgroundColor = "#00B95C";

              TF[inc].style.color = "#006421";

              pass_validation[form_vals[inc]] = TF[inc].value;

              OA++;

            }

            else{

              TF[inc].style.backgroundColor = "#FF5555";

              TF[inc].style.color = "#A80022";

                  fail_flag++;

            }



          }

          if(inc < 1){

             if(Validate_email(TF[inc].value)){

                TF[inc].style.backgroundColor = "#00B95C";

                TF[inc].style.color = "#006421";

                pass_validation[form_vals[inc]] = TF[inc].value;

                OA++;

             }

             else{

                TF[inc].style.backgroundColor = "#FF5555";

                TF[inc].style.color = "#A80022";

                  fail_flag++;

             }



          }

      }



      if(fail_flag < 1){



               parent.pers_data = pass_validation;

               if(old_bod == 0)

                  window.location = "./Signup_form.htm";

               if(old_bod == 1)

                  window.location = "./webreg.aspx?USERNAME="+pass_validation['Username']+"&PASSWD="+pass_validation['Password']+"&ADDRESS1="+pass_validation['Address']+"&STATE="+pass_validation['State']+"&ZIPCODE="+pass_validation['Zip Code']+"&EMAIL="+pass_validation['Email']+"&CITY="+pass_validation['City']+"&COUNTRY="+pass_validation['Country']+"&TELEPHONE="+pass_validation['Telephone'];

              // Second_Validation(TF);





            }

      if(fail_flag > 0)

      alert(error_list);

      error_list = '';

  }



  function Validate_zip(v){

  var IV = 0;

  v = v.toString();

  var vout = v.replace("-","");

     if(vout.length < 5){

        error_list += '\nYour zip code is too short.';

        IV++;

        }

      else if(vout.length > 9){

        error_list += '\nYour zip code is too long.';

        IV++;

        }

     else{

         var VN = valid_numbers.toString();

         for(z=0;z<v.length;z++){

            if(VN.indexOf(v.charAt(z)) < 0){

                error_list += '\nThere are invalid characters in your zip code. Please use a dash for the extended zip code extension.-'+v.charAt(z);

                IV++;

            }

        }

        if(IV < 1)

            return true;

        else

            return false;

     }

  }



  function Validate_email(v){

  var IV = 0;

    if(v.indexOf("@") != v.lastIndexOf("@") || v.length < 7){

        error_list += '\nThere are invalid characters in your email address, or it is not long enough, please verify it and try again.';

        IV++;

    }

    v = v.toLowerCase();

    for(z=0;z<v.length;z++){



    var atz = v.charAt(z);

    var VL = valid_letters.toString();

    var VN = valid_numbers.toString();

    atz = atz.toLowerCase();

    //alert(atz);

    //alert(VL.indexOf(atz));

       if(VN.indexOf(atz) < 0 && VL.indexOf(atz) < 0){

        error_list += '\nThere are invalid characters in your email address, please verify it and try again.-'+v.charAt(z);

           IV++;

       }

    }

    if(IV < 1)

        return true;

    else

        return false;

  }



  function Validate_phone(v,i){

  var IV = 0;

  v = v.toLowerCase();

  if((v != 'telephone' && old_bod == 1) || (v != 'fax' && old_bod == 0)){

    if(v.length < 10){

          error_list += '\nYour '+form_vals[i]+' number is too short, please verify it and try again.';

          IV++;

    }

    for(zz=0;zz<v.length;zz++){

       if(v.indexOf("+") < 0 && v.indexOf("*") < 0)

          break;

       if(v.indexOf("+") >= 0)

          v = v.replace("+","");

       if(v.indexOf("*") >= 0)

          v = v.replace("*","")

    }

    var VN = valid_numbers.toString();

    var VL = valid_letters.toString();

    for(z=0;z<v.length;z++){

       if(VN.indexOf(v.charAt(z)) < 0){

          error_list += '\nThere are invalid characters in your '+form_vals[i]+' number, please verify it and try again.-'+v.charAt(z);

          IV++;

       }

    }

    }

    if(IV < 1)

        return true;

    else

        return false;

  }



 /**************form handling***********************/



  /**************initialize form and menu*********************/

  var AD0 = null;

  var AD1 = null;

  var tinc = 0;

  function assign(){

  var DC = document.qsign;

  Is_Logged();

    if(DC){



      for(gh=0;gh<DC.length;gh++){

        if(old_bod == 0){

            if(form_vals[gh] == 'Password'){

               form_vals[gh] = 'Fax';

               DC[gh].value = "Fax";

            }

            if(form_vals[gh] == 'Confirm Password'){

               form_vals[gh] = 'Company';

               DC[gh].value = "Company";

            }

            if(DC[gh].value != "Submit")

                DC[gh].fix = 1;

            else

                DC[gh].fix = 0;

                //DC[gh].value != "Fax" &&

        }



      if(old_bod == 1){

           if(form_vals[gh] == 'Fax'){

                form_vals[gh] = 'Password';

                DC[gh].value = "Password";

            }

            if(form_vals[gh] == 'Company'){

                form_vals[gh] = 'Confirm Password';

                DC[gh].value = "Confirm Password"

            }

           if(DC[gh].value != "Telephone" && DC[gh].value != "Submit")

                DC[gh].fix = 1;

           else

                DC[gh].fix = 0;

      }

      }

     

      }

      

      brow = (navigator.appName == "Microsoft Internet Explorer")? 0:1;

      if((AD0 = document.getElementById("advert_text")) && (AD1 = document.getElementById("advert")) && tinc < 1){

        swap_rate();

        tinc++;

        }

        if(brow == 0){

            //if(document.getElementById("sub_button"))

            //document.getElementById("sub_button").style.top = "7px";

            }

        if(brow == 1){

            if(document.getElementById("sub_button"))

            document.getElementById("sub_button").style.top = "-17px";

            Adjust_menu();

            }



  }

     //window.onload = assign;

     

     function Is_Logged(){

      //alert(parent.logged);

      if(parent.logged == "true"){

        var logd = document.getElementById("menu1");

        logd.innerHTML = "Logout";

        logd.onclick = function(){window.location = "./Default.aspx";};

      }

     }

  /**************initialize form and menu*********************/



   /**************menu initialization***********************/

  var menu_opts = new Array();

  menu_opts[0] = 'Login';

  menu_opts[1] = 'Help';

 // menu_opts[0] = 'Home';

  //menu_opts[1] = 'What We Offer';

  //menu_opts[2] = 'Get Started';

  //menu_opts[3] = 'Login';

 // menu_opts[4] = 'Contact Us';

  function Adjust_menu(){

     var men_u = document.getElementsByName("menu1");

     if(document.getElementById("mainbox")){

     document.getElementById("mainbox").style.top = "47px";

     document.getElementById("mainbox").style.left = "2px";

     }

     if(men_u.length > 0){

        for(am=0;am<men_u.length;am++){

           men_u[am].style.fontWeight = "bold";

           //men_u[am].innerHTML = '<img src="images/spacer.gif" style="width:1px;height:20px;" border="0"  />'+menu_opts[am];

        }

     }

  }





   /**************menu initialization***********************/



   /****************navigation firing********************/

  function go_to(loc,x){

     window.location = loc;

     if(x)

         parent.pagel = x;

  }



     /****************navigation firing********************/



/****************swap out content on homepage********************/

var CP = new Array();//CR = Content Repository

var timer = 10;

CP[0] = new Array('This would be the best place to describe our product, in a short paragraph.',292,124,'<a href="contactus.htm"><img src="images/key-water292x128.gif" width="292" height="128" border="0" style="display:inline;" /></a>');

CP[1] = new Array('The next frame will contain more data about this specific service.',292,124,'<img src="images/weddingcouple292x124.gif" width="292" height="124" border="0" style="display:inline;" />');

CP[2] = new Array('We\'ll want to keep these short however, due to the limited space on the page.',292,124,'<a href="contactus.htm"><img src="images/guru-laptop292x124.gif" width="292" height="124" border="0" style="display:inline;" /></a>');

CP[3] = new Array('The search bar can be moved into one of these if we like, or maybe special deals and offers.',292,124,'<a href="contactus.htm"><img src="images/colo-team292x124.gif" width="292" height="124" border="0" style="display:inline;" /></a>');

CP[4] = new Array('The search bar can be moved into one of these if we like, or maybe special deals and offers.',292,124,'<a href="contactus.htm"><img src="images/coffee-cup292x124.gif" width="292" height="124" border="0" style="display:inline;" /></a>');

//CP[5] = new Array('The search bar can be moved into one of these if we like, or maybe special deals and offers.',292,124,'<a href="contactus.htm"><img src="images/bizman-lunch292x124.gif" width="292" height="124" border="0" style="display:inline;" /></a>');



//CP[3] = new Array('The search bar can be moved into one of these if we like, or maybe special deals and offers.',292,124,'home_img.jpg','contactus.htm');



var content_track = 0;

var ST = 1;

var STO = null;

var ST_track = null;

var z_wid = 173;

var z_hei = 310;

 function swap_content(i){



     if(ST > 1 && ST < 11){

        if(CP[i]){

        //AD0.style.clip = 'rect(0px, '+Math.round(((z_wid / 10) * ST))+'px, '+z_hei+'px, 0px)';

        AD1.style.clip = 'rect(0px, '+Math.round(((CP[i][1] / 10) * ST))+'px, '+CP[i][2]+'px, 0px)';

        ST++;

        }

     }

     if(ST == 1){

        if(CP[i]){



        //AD0.style.width = z_wid+"px";

        //AD0.style.height = z_hei+"px";

        //AD0.style.position = "absolute";

        //AD0.style.clip = 'rect(0px '+Math.round(((z_wid / 10) * ST))+'px '+z_hei+'px 0px)';

        AD1.style.width = CP[i][1]+"px";

        AD1.style.height = CP[i][2]+"px";

        AD1.style.position = "absolute";

        AD1.style.clip = 'rect(0px '+Math.round(((CP[i][1] / 10) * ST))+'px '+CP[i][2]+'px 0px)';

        //AD0.innerHTML = CP[i][0];

        AD1.innerHTML = CP[i][3];

        STO = setInterval('swap_content('+i+')',30);

        ST_track = i;

        ST++;

        }

     }



     if(ST > 10){

     //AD0.style.clip = 'rect(0px, '+z_wid+'px, '+z_hei+'px, 0px)';

     AD1.style.clip = 'rect(0px, '+CP[i][1]+'px, '+CP[i][2]+'px, 0px)';

     STO = clearInterval(STO);

     STO = null;

     ST_track = null;

     ST = 1;

    }



 }



 function auto_swap(){

    if(content_track < CP.length)

        content_track++;

    else

        content_track = 0;

    swap_content(content_track);

 }



 var swap_interval = null;

 function swap_rate(t){

    swap_interval = setInterval('auto_swap()',(timer * 1000));



    if(t){

         t.src = "images/pauseb.gif";

         t.onclick="stop_swap(this)";

         t.onclick = function(){stop_swap(this);};

    }

 }



 function stop_swap(t){

    swap_interval = clearInterval(swap_interval);

    swap_interval = null;

     if(t){

         t.src = "images/play.gif";

         t.onclick="swap_rate(this)";

         t.onclick = function(){swap_rate(this);};

    }

 }



 function manual_forward(){

 var stop1 = document.getElementById("stop1");

    stop_swap(stop1);

    content_track++;

    if(content_track > (CP.length - 1))

       content_track = 0;

       swap_content(content_track);

 }



 function manual_back(){

 var stop1 = document.getElementById("stop1");

    stop_swap(stop1);

    content_track--;

    if(content_track < 0)

       content_track = (CP.length - 1);

       swap_content(content_track);

 }



 function button_swap(t){

    if(t.onclick = "images/pauseb.gif"){

    }

    else{

    }

 }

 //window.onload = swap_rate;

/****************swap out content on homepage********************/







  /********************header and footer insertion***********************/



  function Make_Container(id,cont){

   if(document.getElementById(id))

      document.getElementById(id).innerHTML = cont;

      id= '';

      cont = '';

}



function CleanHTML(cont,rep,rwi){

var pback = false;

    while(cont.indexOf(rep) > 0){

       cont = (cont.slice(0,cont.indexOf(rep)) + rwi + cont.slice((cont.indexOf(rep) + 6),cont.length));

    }

    pback = cont;

return pback;

}



 /********************header and footer insertion***********************/



 /************wait to resize google search results box*****************/

 function ress(){

var reso;

var rrs;

//cse-search-results

    if(document.getElementById("cse-search-results")){

    reso = document.getElementById("cse-search-results")

      rrs = reso.childNodes;

      rrs[0].style.width = "670px";

    }

}



function res_wait(){

  var stunk = setTimeout("ress()",30);

}



 /************wait to resize google search results box*****************/







  /*************top menu movement*****************/



 function Keep_UP(){
     var brow = navigator.appName;//get the browser
     if(ieVer() == 6){
       var sy = (brow == "Netscape")? window.pageYOffset : document.documentElement.scrollTop; //get the offset for ie or netscape
       if(document.getElementById("topmenu"))
          document.getElementById("topmenu").style.top = ((sy + 0)+"px");
       //if(document.getElementById("leftmenu"))
          //document.getElementById("leftmenu").style.top = ((sy + 0)+"px"); //add extra offset
       if(document.getElementById("headspace"))
          document.getElementById("headspace").style.top = ((sy - 190)+"px"); //add extra offset
      }
  }




    //Mozilla and chrome are not handling CSS or HTML correctly.
    //I have no idea which one, and will not research it.
    function MakeCartRight(){
      var objMozilla = DEF.GEBI('icount');
      if(objMozilla){
        var objUA = navigator.userAgent;
        if(objUA.indexOf("Firefox") >= 0)
            objMozilla.style.right = "70px";
        //else
            //alert(objUA);
      }
    }



   /************top menu movement******************/

//*******************product frame resize*********************/

function Resize_Product_Frame(w,h,e){
    var pframe = false;
    var targ = (e && e != "" && document.getElementById(e))? e:"P_frame" ;
    if(pframe = document.getElementById(targ)){
       if(w >= 350){
       pframe.width = w;
       pframe.parentNode.width = w;
	}
	else{
       pframe.width = 350;
       pframe.parentNode.width = 350;
	}
       pframe.height = h;
    }
  }


//*******************product frame resize*********************/ 

//******************viedo hiding code*******************/

function show_movie(T,cont){
var mov = false;
  if(mov = document.getElementById(cont)){
  //alert(mov.style.display);
    T.innerHTML = (T.innerHTML == "Show Video")? "Hide Video":"Show Video" ;
    mov.style.display = (mov.style.display == "none")? "block":"none" ;
  }
}

//******************viedo hiding code*******************/

//******************pop-up detection*******************/
      function Detect_Popup_Blocker(){
         var ein = window.open("");
         if(ein)
            return true;
         else
            return false;
      }


function ieVer()
{
  if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
  {
    var iever=new Number(RegExp.$1);
    if (iever>=8) return 8;
    else if (iever>=7) return 7;
    else if (iever>=6) return 6;
    else if (iever>=5) return 5;
  }
  return false;
}

//******************pop-up detection*******************/

//***************hide or show the movies *****************/
//wimpy_getWimpyByID().js_wimpy_gotoTrack is not a function
//http://www.optimumcarcare.com/rave.js
//Line 535
 //hide show movie function
 function HideShowMovies(movieid, moviename, movietitle, areafocus, areahide, movielocation){
  var AFID = DEF.GEBI(areafocus);
  var AHID = DEF.GEBI(areahide);
  if(AFID && AHID){
    AFID.style.display = "block";
    AHID.style.display = "none";
    var MID = DEF.GEBI(movieid);
    if(MID){
      MID.innerHTML = (movietitle);
      window.setTimeout("WaitForWimpy('"+moviename+"','"+movielocation+"','"+movietitle+"')",3100);
    }
  }
 }

 //lets wait for the player to load
 function WaitForWimpy(track , movielocation , title){

   if(typeof(window['wimpy_amReady_ask']) == 'function' && wimpy_amReady_ask()){
     //wimpy_clearPlaylist();
     var addFiles = "";
addFiles += "<playlist>";
addFiles += "  <item>";
addFiles += "    <filename>"+movielocation+"</filename>";
addFiles += "    <title>"+title+"</title>";
addFiles += "  </item>";
addFiles += "</playlist>";
//alert(addFiles);
     wimpy_stop();
     wimpy_clearPlaylist();
     wimpy_appendPlaylist(addFiles);
     wimpy_play();
     //wimpy_gotoTrack((track));
   }
   else
     window.setTimeout("WaitForWimpy('"+track+"','"+movielocation+"','"+title+"')",100);
 }

 //wait for wimpy on the home page
 function HomeWait(){

   if(typeof(wimpy_getWimpyByID().js_wimpy_amReady_ask) == "function"){
      //alert("start1");
      if(wimpy_amReady_ask()){
        wimpy_stop();
        wimpy_play();
        HoldWimpy();
      }
      else{
        window.clearTimeout(window.wimpywait);
        window.wimpywait = window.setTimeout("HomeWait()",100);
      }
   }
   else{
        window.clearTimeout(window.wimpywait);
    window.wimpywait = window.setTimeout("HomeWait()",100);
   }
 }

 function HoldWimpy(){
   var Wstate = wimpy_getPlayerState();
   if(Wstate.percent > 0){
      wimpy_pause();
   }
   else{
     window.clearTimeout(window.wimpystart);
     window.setTimeout("HoldWimpy()",25);
   }
 }
//***************hide or show the movies *****************/


//<div style="background-color:#FB3C04;width:120px;color:#000000;cursor:pointer;" class="container" onmouseover="this.style.backgroundColor = '#CCCCCC';" onmouseout="this.style.backgroundColor = '#FB3C04';" onclick="go_to('./Signup_form.htm')">       <b class="rtop"><b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b></b>        <b>Get Started!</b>         <b class="rbottom"><b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b></b>     </div>
