if (parent != self)
top.location.href = location.href;

function myOpen(url,name) {windowName=window.open(url,name,'width=800,height=500,screenX=0,screenY=0,top=0,left=0,status=yes,scrollbars=yes,resizable=yes');
windowName.focus();
}
function mycurr(url,name) {windowCurr=window.open(url,name,'width=750,height=200,screenX=0,screenY=0,top=0,left=0,status=yes,scrollbars=yes,resizable=yes');
windowCurr.focus();
}
function radOpen(url,name) {windowRad=window.open(url,name,'width=550,height=30,screenX=0,screenY=0,top=0,left=0,status=yes,scrollbars=yes,resizable=yes');
windowRad.focus();
}

function isEmail(string){
if(string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)!=-1)
return true;
else
return false;
}

////

var bcol ="#FFd9d9";
function checkaddress(){
if(document.addressform.forename.value==""){
alert('Please enter your First Name');
document.addressform.forename.style.backgroundColor=bcol;
document.addressform.forename.focus();
return false;
}if(document.addressform.surname.value==""){
alert('Please enter your Surname');
document.addressform.surname.style.backgroundColor=bcol;
document.addressform.surname.focus();
return false;
}if(document.addressform.numb.value==""){
alert('Please enter your House Number/Name');
document.addressform.numb.style.backgroundColor=bcol;
document.addressform.numb.focus();
return false;
}if(document.addressform.address1.value==""){
alert('Please enter your Street');
document.addressform.address1.style.backgroundColor=bcol;
document.addressform.address1.focus();
return false;
}if(document.addressform.city.value==""){
alert('Please enter your Town/City');
document.addressform.city.style.backgroundColor=bcol;
document.addressform.city.focus();
return false;
}if(document.addressform.pcode.value == ""){
alert("Enter Post Code");
document.addressform.pcode.style.backgroundColor=bcol;
document.addressform.pcode.focus();
return false;
}if(document.addressform.country.value == "0"){
alert("Please select a Country")
document.addressform.country.focus();
return false;
}if(document.addressform.country.value == ""){
alert("Please select a Country")
document.addressform.country.focus();
return false;
}
if(document.addressform.email.value == ""){
alert("Please enter a valid e-mail Address")
document.addressform.email.style.backgroundColor=bcol;
document.addressform.email.focus();
return false;
}else{
if(isEmail(document.addressform.email.value) == false){
alert("Please enter a valid e-mail Address");
document.addressform.email.style.backgroundColor=bcol;
document.addressform.email.focus();
return false;
}
}
return true;
}

////

function checkcountry(){
if(document.addressform.country.value == "0"){
alert("Please select a Country")
document.addressform.country.focus();
return false;
}if(document.addressform.country.value == ""){
alert("Please select a Country")
document.addressform.country.focus();
return false;
}
return true;
}

////