<!--
self.name = "main";
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

function buynow(url,mwidth,mheight){
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=0")')
}

function topnav(url){
eval('window.open(url,"info","width=630px,height=550px,resizable=1,top=5,scrollbars=1")')
}


function cap(any){
window.open("createaplate/index2.html","caplate","width=450px,height=450px,resizable=0,top=5,scrollbars=0");
}



function buy(plate,price,type){
window.open("buy.cfm?plate="+plate+"&price="+price+"&type="+type,"buy","width=450px,height=450px,resizable=1,top=15,scrollbars=0");
}



function checkforma()
{

  if (document.boldsale.fname.value.length < 3){
    alert("Please enter your full name.")
document.boldsale.fname.focus();
      return false}

  if (document.boldsale.sname.value.length < 3){
    alert("Please enter your full name.")
document.boldsale.sname.focus();
      return false}

  if (document.boldsale.houseno.value.length < 1){
    alert("Please enter your house number.")
document.boldsale.houseno.focus();
      return false}

  if (document.boldsale.street.value.length < 3){
    alert("Please enter your street address.")
document.boldsale.street.focus();
      return false}

  if (document.boldsale.city.value.length < 3){
    alert("Please enter your city.")
document.boldsale.city.focus();
      return false}

  if (document.boldsale.state.value.length < 3){
    alert("Please enter your county.")
document.boldsale.state.focus();
      return false}

  if (document.boldsale.pcode.value.length < 3){
    alert("Please enter your postcode.")
document.boldsale.pcode.focus();
      return false}



  if ((document.boldsale.email.value.length < 9) || (document.boldsale.email.value.indexOf('@') == -1) || (document.boldsale.email.value.indexOf('.') == -1)){ 
    alert("Please enter a valid email address like you@domain.com")
document.boldsale.email.focus();
  return false}

  if (document.boldsale.phoneno.value.length < 5){
    alert("Please enter a contact number.")
document.boldsale.phoneno.focus();
      return false}

  if (document.boldsale.password.value.length < 3){
    alert("Please enter a memorable password.")
document.boldsale.password.focus();
      return false}
}

function checkformn()
{

  if ((document.boldsale.email.value.length < 9) || (document.boldsale.email.value.indexOf('@') == -1) || (document.boldsale.email.value.indexOf('.') == -1)){ 
    alert("Please enter a valid email address like you@domain.com")
  return false}

  if (document.boldsale.landline.value.length < 3){
    alert("Please enter a contact number.")
      return false}
}

function pleasewait()
{
oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.style.backgroundColor = "WHITE";
oPopupBody.style.border = "solid #EEEEEE 3px";
oPopupBody.innerHTML = "<p align='center'><font size='2' face='Arial'><img border='0' src='http://www.boldreg.co.uk/site_clock.gif' width='99' height='62'><br><b>Retrieving your results...</b><br>The more numbers we have for<br>you the longer this may take. </font></p>";
oPopup.show(400, 300, 250, 120, document.body);
}
-->
