function openWin($url) {
  msgWindow= window.open($url,"displayWindow","width=780,height=600,status=no,toolbar=no,menubar=no,scrollbars=yes");
}
function closeIt(){
  window.close();
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function viewform(m, w, h) {
   var scroll = 'yes';
   var settings;
   var LeftPosition;
   var TopPosition;
   var win;
          
   LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
   TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  
   settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll;
   settings = settings + ',resizable=no,maximize=no,status=no,toolbar=no,directories=no,menubar=no,location=no';
              
   win = window.open(m, 'pre', settings);
   win.name = 'name';
   win.focus();
}

function conf() {
  var reply = confirm('This record will be permanently deleted. Do you want to continue?');

  if(reply) {
     return true;
   } else {
     return false;
   }
}                                 

function inputCustomInfo(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('address','city','zip_code','billing_address','billing_city','billing_zip_code');
   var error_array = new Array('Street Address','City','Zip Code','Billing Street Address','Billing City','Billing Zip Code');

   if (!(validEmail(frm.elements['get_email'].value))) { 
      alert('Please enter a valid email address in the form of email@host.tag.');
      frm.elements['get_email'].focus();
      return false;
   }

   if (frm.elements['get_password_1'].value.length == 0) {
      alert('Please enter a password 6-10 characters long using only letters or numbers.');
      frm.elements['get_password_1'].focus();
      return false;
   }
   if ((frm.elements['get_password_1'].value.length < 6) || (frm.elements['get_password_1'].value.length > 10)) {
      alert('Please enter a password 6-10 characters long using only letters or numbers.');
      frm.elements['get_password_1'].focus(); 
      return false;
   }

   if (frm.elements['get_password_2'].value.length == 0) {
      alert('Please enter a Re-Password.');
      frm.elements['get_password_2'].focus();
      return false;
   }

   if (frm.elements['get_password_1'].value != frm.elements['get_password_2'].value) {
      alert('Your password confirmation does not match the original password');
      frm.elements['get_password_2'].focus();
      return false;
   }

   if (frm.elements['get_first_name'].value.length == 0) {
      alert('Please enter your First Name');
      frm.elements['get_first_name'].focus();
      return false;
   }

   if (frm.elements['get_last_name'].value.length == 0) {
      alert('Please enter your Last Name');
      frm.elements['get_last_name'].focus();
      return false;
   }

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert('Please enter '+error_array[i]);
         frm.elements[source].focus();
         return false;
      }
   }

   return true;
}

function inputCustomInfo2(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('address','city','zip_code');
   var error_array = new Array('an Address','a city','a valid zip code');

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert('Please enter '+error_array[i]);
         frm.elements[source].focus();
         return false;
      }
   }

   return true;
}

function inputAdminCustomInfo(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('first_name','last_name','email','address','city','zip_code');
   var error_array = new Array('First Name','Last Name','Email Address','Street Address','City','Zip Code');

   if (frm.elements['get_username'].value.length == 0) {
      alert('Please enter Username');
      frm.elements['get_username'].focus();
      return false;
   }

   if (frm.elements['get_password_1'].value.length == 0) {
      alert('Please enter a password 6-10 characters long using only letters or numbers.');
      frm.elements['get_password_1'].focus();
      return false;
   }
   if ((frm.elements['get_password_1'].value.length < 6) || (frm.elements['get_password_1'].value.length > 10)) {
      alert('Please enter a password 6-10 characters long using only letters or numbers.');
      frm.elements['get_password_1'].focus(); 
      return false;
   }

   if (frm.elements['get_password_2'].value.length == 0) {
      alert('Please enter a Re-Password.');
      frm.elements['get_password_2'].focus();
      return false;
   }

   if (frm.elements['get_password_1'].value != frm.elements['get_password_2'].value) {
      alert('Your password confirmation does not match the original password');
      frm.elements['get_password_2'].focus();
      return false;
   }

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert('Please enter '+error_array[i]);
         frm.elements[source].focus();
         return false;
      }
   }

   if (!(validEmail(frm.elements['get_email'].value))) { 
      alert('Please enter a valid email address in the form of email@host.tag.');
      frm.elements['get_email'].focus();
      return false;
   }
   return true;
}

function inputAdminCustomInfo2(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('username','password','first_name','last_name','email','address','city','zip_code');
   var error_array = new Array('Username','Password','First Name','Last Name','Email Address','Street Address','City','Zip Code');

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert('Please enter '+error_array[i]);
         frm.elements[source].focus();
         return false;
      }
   }

   if (!(validEmail(frm.elements['get_email'].value))) { 
      alert('Please enter a valid email address in the form of email@host.tag.');
      frm.elements['get_email'].focus();
      return false;
   }
  
   return true;
}

function changePswd(frm) {
   if (frm.elements['get_password_1'].value.length == 0) {
      alert('Please enter a password 6-10 characters long using only letters or numbers.');
      frm.elements['get_password_1'].focus();
      return false;
   }

   if ((frm.elements['get_password_1'].value.length < 6) || (frm.elements['get_password_1'].value.length > 10)) {
      alert('Please enter a password 6-10 characters long using only letters or numbers.');
      frm.elements['get_password_1'].focus(); 
      return false;
   }

   if (frm.elements['get_password_2'].value.length == 0) {
      alert('Please enter a Re-Password.');
      frm.elements['get_password_2'].focus();
      return false;
   }

   if (frm.elements['get_password_1'].value != frm.elements['get_password_2'].value) {
      alert('Your password confirmation does not match the original password');
      frm.elements['get_password_2'].focus();
      return false;
   }

   return true;
}

function validEmail(email) {
  invalidChars = " /:,;";
  if (email == "") {
    return false;
  }
  for (i=0; i<invalidChars.length;i++) {
    badChar = invalidChars.charAt(i);
    if (email.indexOf(badChar,0) > -1) {
      return false;
    }
  }
  atPos = email.indexOf("@",1);
  if (atPos == -1) {
    return false;
  }
  if (email.indexOf("@",atPos+1) > -1) {
    return false;
  }
  periodPos = email.indexOf(".",atPos);
  if (periodPos == -1) {
    return false;
  }
  if (periodPos+3 > email.length) {
    return false;
  }
  return true;
}

function resize() {
var i=0;
var LeftPosition;
var TopPosition;
var w;
var h;
  if (navigator.appName == 'Netscape') i=40;
  if (document.images[0]) 
  {
    w = document.images[0].width+100;
    h = document.images[0].height+115-i;
    window.resizeTo(w, h);
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    window.moveTo(LeftPosition, TopPosition); 
  }
  self.focus();
}

function useCustomInfo2(chck, frm, prefix, prefix2) {
   var prefix0 = 'get_';
   var input_array = new Array('firstname','lastname','company','address','city','zip_code','phone');
   var select_array = new Array('ref_country', 'ref_state');

   if (chck.checked) {
      for (var i=0; i<input_array.length; i++) {
         var source = prefix0+prefix+input_array[i];
         var destin = prefix0+prefix2+input_array[i];
      
         frm.elements[destin].value = frm.elements[source].value;
      }

      for (var i=0; i<select_array.length; i++) {
         var source = prefix0+prefix+select_array[i]; 
         var destin = prefix0+prefix2+select_array[i];
         
         frm.elements[destin].options.length = 0;
         for (var j=0; j < frm.elements[source].options.length; j++) {
            frm.elements[destin].options.length = j+1;
            frm.elements[destin].options[j].value = frm.elements[source].options[j].value;
            frm.elements[destin].options[j].text  = frm.elements[source].options[j].text;
         }
         
         frm.elements[destin].selectedIndex = frm.elements[source].selectedIndex;
      }
   }
   return true;
}

function useCustomInfo3(chck, frm, prefix, prefix2) {
   var prefix0 = 'get_';
   var input_array = new Array('address','city','zip_code','phone','company','fax','email');
   var select_array = new Array('ref_country', 'ref_state');

   if (chck.checked) {
      for (var i=0; i<input_array.length; i++) {
         var source = prefix0+prefix+input_array[i];
         var destin = prefix0+prefix2+input_array[i];
         frm.elements[destin].value = frm.elements[source].value;
      }

      for (var i=0; i<select_array.length; i++) {
         var source = prefix0+prefix+select_array[i]; 
         var destin = prefix0+prefix2+select_array[i];
         
         frm.elements[destin].options.length = 0;

         for (var j=0; j < frm.elements[source].options.length; j++) {
            frm.elements[destin].options.length = j+1;
            frm.elements[destin].options[j].value = frm.elements[source].options[j].value;
            frm.elements[destin].options[j].text  = frm.elements[source].options[j].text;
         }
         
         frm.elements[destin].selectedIndex = frm.elements[source].selectedIndex;
      }
   }else{
     for (var i=0; i<input_array.length; i++) {
         var destin = prefix0+prefix2+input_array[i];
         frm.elements[destin].value = '';
     }
   }
   return true;
}

function inputOrderInfo(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('shipping_firstname','shipping_lastname','shipping_address','shipping_city','shipping_zip_code',
      'billing_info','billing_firstname','billing_lastname','billing_address','billing_city','billing_zip_code','billing_email');

   var error_array = new Array('Shipping First Name','Shipping Last Name','Shipping Address','Shipping City','Shipping Zip Code',
     'Error','Billing First Name','Billing Last Name','Billing Address','Billing City','Billing Zip Code','Billing Email');

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if  (input_array[i] == 'billing_info') {
        if(!document.getElementById('billing_yes').checked && !document.getElementById('billing_no').checked){
          alert('Plese select method filling Billing address');
         return false;
        }
      }
      if (frm.elements[source].value.length == 0) {
         alert(error_array[i].substr(0,1).toUpperCase()+error_array[i].substr(1)+' can not be empty!');
         frm.elements[source].focus();
         return false;
      }
      if  (input_array[i] == 'billing_email') {
         if (!validEmail(frm.elements[source].value)){
            alert(error_array[i].substr(0,1).toUpperCase()+error_array[i].substr(1)+' has wrong format ');
            frm.elements[source].focus();
            return false;
         } 
      }    
   }

   if (frm.get_shipping_ref_country.value == '239' || frm.get_shipping_ref_country.value == '240') {
      if(!frm.get_shipping_ref_state.value){
        alert("Please selecet \"Shipping State\".")
      return false;
      
      }
   }

   if (frm.get_billing_ref_country.value == '239' || frm.get_billing_ref_country.value == '240') {
      if(!frm.get_billing_ref_state.value){
        alert("Please selecet \"Billing State\".")
      return false;
      
      }
   }

   
   if (!frm.get_tos.checked) {
      alert("Please read \"Term of Sale\" and click continue.")
      return false;
   }
   if (frm.get_shipping_phone.value != "") {
       p_l = frm.get_shipping_phone.value.replace(/[^\d]*/gi,"")
       if(p_l.length < 10 ){
        alert('Shipping Phone number did not have enough numbers!');
        return false;
       }
   }
   
   if (frm.get_billing_phone.value != "") {
       p_l2 = frm.get_billing_phone.value.replace(/[^\d]*/gi,"")
       if(p_l2.length < 10 ){
        alert('Billing Phone number did not have enough numbers!');
        return false;
       }
   }
   
   return true;
}


function inputOrderInfo1(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('shipping_firstname','shipping_lastname','shipping_address','shipping_city',
      'billing_firstname','billing_lastname','billing_address','billing_city','billing_zip_code','billing_email');

   var error_array = new Array('Shipping Firstname','Shipping Lastname','Shipping Address','Shipping City',
     'Billing Firstname','Billing Lastname','Billing Address','Billing City','Billing Zip Code','Billing Email');

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert(error_array[i].substr(0,1).toUpperCase()+error_array[i].substr(1)+' can not be empty!');
         frm.elements[source].focus();
         return false;
      }
      if  (input_array[i] == 'billing_email') {
         if (!validEmail(frm.elements[source].value)){
            alert(error_array[i].substr(0,1).toUpperCase()+error_array[i].substr(1)+' has wrong format ');
            frm.elements[source].focus();
            return false;
         } 
      }    
   }

   if (frm.get_is_create_account.checked && frm.elements['get_pasw_1'].value.length == 0) {
      alert('Please enter a password 6-15 characters long using only letters or numbers.');
      frm.elements['get_pasw_1'].focus();
      return false;
   }

   if (frm.elements['get_pasw_1'].value && ((frm.elements['get_pasw_1'].value.length < 6) || (frm.elements['get_pasw_1'].value.length > 15))) {
      alert('Please enter a password 6-15 characters long using only letters or numbers.');
      frm.elements['get_pasw_1'].focus(); 
      return false;
   }

   if (frm.elements['get_pasw_1'].value && frm.elements['get_pasw_2'].value.length == 0) {
      alert('Please enter a Re-Password.');
      frm.elements['get_pasw_2'].focus();
      return false;
   }

   if (frm.elements['get_pasw_2'].value && (frm.elements['get_pasw_1'].value != frm.elements['get_pasw_2'].value)) {
      alert('Your password confirmation does not match the original password');
      frm.elements['get_pasw_2'].focus();
      return false;
   }

   if (!frm.get_tos.checked) {
      alert("Please read \"Term of Sale\" and click continue.")
      return false;
   }
   if (frm.get_shipping_phone.value != "") {
       p_l = frm.get_shipping_phone.value.replace(/[^\d]*/gi,"")
       if(p_l.length < 10 ){
        alert('Shipping Phone number did not have enough numbers!');
        return false;
       }
   }
   
   if (frm.get_billing_phone.value != "") {
       p_l2 = frm.get_billing_phone.value.replace(/[^\d]*/gi,"")
       if(p_l2.length < 10 ){
        alert('Billing Phone number did not have enough numbers!');
        return false;
       }
   }

   return true;
}


function check_basket_quantity(frm) {
   var i;
   var sum;
   for (i=0; i < frm.length; i++) {
      if (frm.elements[i].type == "text") {

         if ((frm.elements[i].value.length == 0)) {
            alert('Please, enter Quantity');
            frm.elements[i].focus(); 
            return false;  
         } 

         myreg = new RegExp("^\\d+$");
         res = myreg.test(frm.elements[i].value);
         if (!res) {
            alert('Quantity should be digit');
            frm.elements[i].focus(); 
            return false;
         }
       
      }
   }
   return true
}

function change_basket_shipping(frm, value) {
   var i;
   var count_method = 0;
   count_method = frm.get_ref_shipping_type.length;
   if(count_method > 0){
      for (var i = 0;i < count_method; i++) {
        frm.get_ref_shipping_type[i].checked = false;
        if (frm.get_ref_shipping_type[i].value == value){
         frm.get_ref_shipping_type[i].checked = true;
        }
      }
   }
   return false;
}

function inputCategoryInfo(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('name');
   var error_array = new Array('Category Name');

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert('Please enter '+error_array[i]);
         frm.elements[source].focus();
         return false;
      }
   }
 
   return true;
}

function inputItemInfo(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('name', 'code');
   var error_array = new Array('Item Name', 'Code');

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert('Please enter '+error_array[i]);
         frm.elements[source].focus();
         return false;
      }
   }
 
   return true;
}

function inputPropertyInfo(frm) {
   if (frm.get_display_name.value.length == 0) {
      alert('Please enter Display Name');
      frm.get_display_name.focus();
      return false;
   }
 
   return true;
}

function inputPropertyValueInfo(frm) {
   if (frm.get_value.value.length == 0) {
      alert('Please enter Property Value');
      frm.get_value.focus();
      return false;
   }
 
   return true;
}

function ChangeGroup(frm) {
//   if (frm.get_ref_group.value) {
//      frm.get_price.disabled=true;
//  } else {
//      frm.get_price.disabled=false;
//   }
   return true;
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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 MM_ClickImage() { //v3.0
  var i,j=0,x,a=MM_ClickImage.arguments; 
  
  document.MM_sr=new Array; 
  for(i=0;i<(a.length-2);i+=4)
   if ((x=MM_findObj(a[i]))!=null){
      document.MM_sr[j++]=x; 
      if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
   }

   if ((y=MM_findObj('pic_href'))!=null){
      if (a[5] == 1) {
         y.href='javascript: viewform(\'view_images.php?ref_item='+a[4]+'\',500,500,\'yes\');';
      } else {
         y.href='javascript: viewform(\'view_images.php?ref_mod='+a[4]+'\',500,500,\'yes\');';
      }
   }
}

function inputEmail(frm) {
   if (!(validEmail(frm.elements['get_email'].value))) { 
      alert('Please enter a valid email address in the form of email@host.tag.');
      frm.elements['get_email'].focus();
      return false;
   }

   return true;
}


function inputUploadInfo(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('name','email','comments', 'sign_crypt');
   var error_array = new Array('Name','Email','Comments', 'Access Code');

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert('Please enter '+error_array[i]);
         frm.elements[source].focus();
         return false;
      }
   }
 
   return true;
}


function inputFriendInfo(frm) {
   var prefix0 = 'get_';
   var input_array = new Array('name','email','sender_name','sender_email','comments');
   var error_array = new Array("Friend's Name","Friend's Email",'Your Name','Your Email','Comments');

   for (var i=0; i<input_array.length; i++) {
      var source = prefix0+input_array[i];          
      if (frm.elements[source].value.length == 0) {
         alert('Please enter '+error_array[i]);
         frm.elements[source].focus();
         return false;
      }
   }
 
   return true;
}


function clr_txt(frm) { 
   frm.get_search.value = "";
}

function check_basket_shipping_form(frm) {

   if (frm.get_shipping_ref_country.value.length == 0) {
      alert('Please Select Shipping Country');
      frm.get_shipping_ref_country.focus();
      return false;
   }
   
   if (frm.get_shipping_ref_state.value == 0 && frm.get_shipping_ref_country.value == 239) {
      alert('Please Select Shipping State');
      frm.get_shipping_zip_code.focus();
      return false;
   }

   if (frm.get_shipping_zip_code.value.length == 0 && (frm.get_shipping_ref_country.value == 239 || frm.get_shipping_ref_country.value == 240)) {
      alert('Please Enter Shipping ZIP or Postal Code');
      frm.get_shipping_zip_code.focus();
      return false;
   }

   var flag = 0;
   var count_method = 0;

   count_method = frm.get_ref_shipping_type.length;

   if(!count_method){
     if(frm.get_ref_shipping_type.checked){
         count_method = 0;         
         flag = 1;
     }else{
       alert('Please Select Shipping Method Or "Click Here To Get Shipping"');
       return false;
     }
   }

   for (var i = 0;i < count_method; i++) {
      if (frm.get_ref_shipping_type[i].checked)
         flag = 1;
   }
   if (!flag) {
      alert('Please Select Shipping Method');
      return false;
   }
 
   frm.submit(); return false;
}

function SelectAllCheck(obj, mark, name) {
   var form = obj.form;
   for (i = 0; i < form.elements.length; i++) {
      var item = form.elements[i];
      if (item.name == name) {
         item.checked = mark;
      };
   }
}

function SelectAllCheck1(obj, mark, name) {
   var form = obj.form;
   for (i = 0; i < form.elements.length; i++) {
      var item = form.elements[i];
      if (item.id == name) {
         item.checked = mark;
      };
   }
}


function select_check(obj,name, name2) {
   var form = obj.form;
   var k = 0; var j = 0; var x = 0;
   for (i = 0; i < form.elements.length; i++) {
      var item = form.elements[i];
      if (item.name == name) {
         j++;
         if (item.checked) {
           k++;
         }
      }
      if (item.name == name2) {
         x = item;
      }
   }
   if (x && j == k) {
      x.checked = true;
   } else {
      x.checked = false;
   }
}

function check_form(){
    if (!document.loginform.username.value) {
      alert ("Please enter your username");
      document.loginform.username.focus();
      return false;
    }
    if (!document.loginform.password.value) {
      alert ("Please enter your password");
      document.loginform.password.focus();
      return false;
    }
    return true;
}

function select_address_country(ref_country){
 var length = document.getElementById('shippingform').get_shipping_ref_country.options.length;
 for(i=0;i<length;i++) {
  if(document.getElementById('shippingform').get_shipping_ref_country.options[i].value = ref_country){
    document.getElementById('shippingform').get_shipping_ref_country.options.selectedIndex = i;
  }
 }
}

function checkCartSignup(form){


    if (form.get_email.value == "") {
      alert ("Please enter Your Email Address");
      form.get_email.focus();
      return false;
    }
    
   if (!(validEmail(form.get_email.value))) { 
      alert('Please enter a valid Your Email Address in the form of email@host.tag');
      form.get_email.focus();
      return false;
   }
    
    if (form.get_password_1.value == "") {
      alert ("Please enter Your Password");
      form.get_password_1.focus();
      return false;
    }
    if (form.get_password_2.value == "") {
      alert ("Please enter Retype Password");
      form.get_password_2.focus();
      return false;
    }

    if (form.get_password_1.value != form.get_password_2.value) {
      alert ("Password and Retype Password must by similar");
      form.get_password_2.focus();
      return false;
    }

    return true;
}

function biling_info_vis(){

    
    if(document.getElementById('billing_no').checked){
      document.getElementById('billinginfo').style.display = 'block';
    }else{
      document.getElementById('billinginfo').style.display = 'none';    
    }
    
    
    
    

    return true;
}
