                                            function checkorder(){

                                            if (orderformJC.Contact_FirstName0.value.length < 2){
                                            alert('Please enter a name in the \"FirstName\" field.');
                                            orderformJC.Contact_FirstName0.focus();
                                            return false;
                                            }
                                            if (orderformJC.Contact_LastName0.value.length < 2){
                                            alert('Please enter a name in the \"Lastname\" field.');
                                            orderformJC.Contact_LastName0.focus();
                                            return false;

                                            } 
                                            if (orderformJC.Contact_StreetAddress0.value.length < 1){
                                            alert('Please enter an address in the \"Street address\" field.');
                                            orderformJC.Contact_StreetAddress0.focus();
                                            return false;
                                            }
                                            if (orderformJC.Contact_Address3.value.length < 1){
                                            alert('Please enter an address in the \"Address cont\" field.');
                                            orderformJC.Contact_Address3.focus();
                                            return false;

                                            }
                                            if (orderformJC.Contact_Address4.value.length < 1){
                                            alert('Please enter an address in the \"Address cont\" field.');
                                            orderformJC.Contact_Address4.focus();
                                            return false;
                                            }
                                            if (orderformJC.Contact_County0.selectedIndex == 0){
                                            alert('Please select your county.');
                                            orderformJC.Contact_County0.focus();
                                            return false;

                                            }
                                            if (orderformJC.Contact_ZipCode0.value.length < 6){
                                            alert('Please enter a postal code in the \"Postal code\" field.');
                                            orderformJC.Contact_ZipCode0.focus();
                                            return false;
                                            }
                                            if (orderformJC.Contact_Mobilephone0.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');
                                            orderformJC.Contact_Mobilephone0.focus();
                                            return false;
                                            }

                                            if (orderformJC.Contact_HomePhone0.value.length < 10){
                                            alert('Please enter your full number including std code in the \"Home phone\" field.');
                                            orderformJC.Contact_HomePhone0.focus();
                                            return false;

                                            }
                                            if (orderformJC.Contact_Email0.value.length < 4){
                                            alert('Please enter a proper value for the \"e-mail address\" field.');
                                            orderformJC.Contact_Email0.focus();
                                            return false;
                                            }

                                            checkEmail = orderformJC.Contact_Email0.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.");
                                            orderformJC.Contact_Email0.select();
                                            return false;
                                            } 
                                            if (orderformJC.Account_Password.value.length < 6){
                                            alert('Incorrect password selection. Please choose a password between 6 and 12 characters.');
                                            orderformJC.Account_Password.focus();
                                            return false;
                                            }
                                            if (orderformJC.Account_PasswordConfirm.value != orderformJC.Account_Password.value){
                                            alert('Your Passwords do not match please enter your password again and reconfirm');
                                            orderformJC.Account_PasswordConfirm.value = "";
                                            orderformJC.Account_Password.value = "";
                                            orderformJC.Account_Password.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 newWindow2(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/0;
  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();
  }

  
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);
}

