

                                          function checkorder(){

                                          if (Bsignup.FirstName.value.length < 2){
                                          alert('Please enter your company name in the \"Company Name\" field.');
                                          Bsignup.FirstName.focus();
                                          return false;
                                          }
                                          if (Bsignup.LastName.value.length < 2){
                                          alert('Please enter your company website address in the \"Company Website\" field. If you do not have a website type \"NA\"');
                                          Bsignup.LastName.focus();
                                          return false;

                                          } 
                                          if (Bsignup.address1.value.length < 1){
                                          alert('Please enter an address in the \"Street address\" field.');
                                          Bsignup.address1.focus();
                                          return false;
                                          }
                                          if (Bsignup.city.value.length < 1){
                                          alert('Please enter an address in the \"Postal Town\" field.');
                                          Bsignup.city.focus();
                                          return false;
                                          }
                                          if (Bsignup.state.selectedIndex == 0){
                                          alert('Please select your county.');
                                          Bsignup.state.focus();
                                          return false;

                                          }
                                          if (Bsignup.Homephone.value.length < 4){
                                          alert('Please enter a contact number in the \"Business Phone Number\" Field.');
                                          Bsignup.Homephone.focus();
                                          return false;


                                          }
                                          if (Bsignup.Mobilephone.value.length < 4){
                                          alert('Please enter a number in the \"Mobile phone\" field \nIf you do not have a mobile phone type \"None\" \nNOTE If you dont supply a mobile phone number we \nwill not be able to send you text alerts');
                                          Bsignup.Mobilephone.focus();
                                          return false;
                                          }

                                          if (Bsignup.email.value.length < 4){
                                          alert('Please enter a proper value for the \"e-mail address\" field.');
                                          Bsignup.email.focus();
                                          return false;
                                          }

                                          checkEmail = Bsignup.email.value      
                                          if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) 
                                          {alert("You have entered an invalid e-mail address. Please try again.");
                                          Bsignup.email.select();
                                          return false;
                                          }

                                          if (Bsignup.postcode.value.length < 6){
                                          alert('Please enter your full postcode in the \"Postcode\" field.');
                                          Bsignup.postcode.focus();
                                          return false;
                                          }
                                          
                                          if (Bsignup.profile.value.length < 2){
                                          alert('Please enter your company Mission Statement in the \"Dealer Mission Statement\" field. Type \"NA\" if you wish to add it later to your profile.');
                                          Bsignup.profile.focus();
                                          return false;
                                          }

                                          if (Bsignup.pass1.value.length < 6){
                                          alert('Incorrect password selection. Please choose a password between 6 and 12 characters.');
                                          Bsignup.pass1.focus();
                                          return false;

                                          }

                                          if (Bsignup.PassConfirm.value != Bsignup.pass1.value){
                                          alert('Your Passwords do not match please enter your password again and reconfirm');
                                          Bsignup.PassConfirm.value = "";
                                          Bsignup.pass1.value = "";
                                          Bsignup.pass1.focus();
                                          return false;

                                          }

                                          if (Bsignup.Chk1.checked == 0){
                                          alert('Please confirm you have read and agree to the terms and conditions and the terms of service.');
                                          Bsignup.Chk1.focus();
                                          return false; 

                                          }  
                                          }
                                          
                                           

  var win = null;
  function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/1;
  var wint = (screen.height-h)/0;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
  }
  
  var win = null;
  function newWindow3(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}


  
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
 var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
  windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,'; 
 else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
 else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
 else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
 else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
 else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
 if(h!="") windowProperties+='height='+h; if(windowProperties!="") { 
  if( windowProperties.charAt(windowProperties.length-1)==',') 
   windowProperties=windowProperties.substring(0,windowProperties.length-1); } 
 window.open(url,name,windowProperties);
}

