function goRoy(){
var x = document.royform.royoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}

function goDane(){
var x = document.daneform.daneoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}

function goWill(){
var x = document.daneform.willoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}

function goPat(){
var x = document.patform.patoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}

function goScott(){
var x = document.scottform.scottoptions.value;
if (x > 0){
 window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goDeer(){
var x = document.deerform.deeroptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goMark(){
var x = document.markform.markoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goBrian(){
var x = document.brianform.brianoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goBill(){
var x = document.billform.billoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goJeff(){
var x = document.jeffform.jeffoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goFeatures(){
var x = document.featuresform.featuresoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goPlatek(){
var x = document.platekform.platekoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goPalazzo(){
var x = document.palazzoform.palazzooptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goLamb(){
var x = document.lambform.lamboptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goFrank(){
var x = document.frankform.frankoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}
function goTerry(){
var x = document.terryform.terryoptions.value;
if (x > 0){
window.location='imagesarticle08.php?article_id=' + x ;
	}
}

	function checkForm(){
			var error = 0;

			if(document.subform.postcode.value.length <1){
			error++;
			alert("You MUST fill in the postcode field. Thanks!");
			}
			if(document.subform.coname.value.length <1){
			error++;
			alert("You MUST fill in the Company field. Thanks!");
			}
			if(document.subform.yrname.value.length <1){
			error++;
			alert("We must have your name in case of queries! Thanks!");
			}
			if(document.subform.type.value.length <1){
			error++;
			alert("Please select a business type.");
			}
			if(document.subform.address1.value.length <1){
			error++;
			alert("Don't forget to tell us your address");
			}
			if(document.subform.email.value.length <1){
			error++;
			alert("We must have your email address in case of queries! Thanks!");
			}
			if(document.subform.telephone.value.length <1){
			error++;
			alert("We must have your telephone no. in case of queries! Thanks!");
			}
								
			email = document.subform.email.value;
			re = /.*@.*\.\w/;
			if (!(re.exec(email))){
			error++;
			alert("This does not appear to be a valid email address - please check and resubmit.");
			}

			////////card check for non-GB only////////
			if (document.subform.country.value != "GB"){
				if(document.subform.cardname.value.length <1 ){
				error++;
				alert("We must have the name as shown on your card! Thanks!");
				}
				if(eval (document.subform.cardnumber.value) < 1){
				error++;
				alert("We must have your card number! Thanks!");
				}
				if(document.subform.cvs.value.length <1 ){
				error++;
				alert("We must have your CVS number! Thanks!");
				}				
				if((cts=="Maestro")&& (document.subform.issue.value<1)){
			  	error++;
				alert("Please enter your Maestro Card issue no.");
				}
				if((cts=="Visa Debit")&& (document.subform.issue.value<1)){
			 	 error++;
				alert("Please enter your Visa Debit Card issue no.");
				}				
			}///end card check			
			
			if(document.subform.country.value != "GB" && document.subform.cardnumber.value.length <1){
			error++;
			alert("Sorry - IMAGES is not free to non-UK subscribers.Please enter your payment details");
			}else{
					if (error < 1 ) {
					document.subform.submit();
						}

			}//end else
	}//end function
			


function loadFrame(src2ld){
 document.getElementById('flashframe').src= src2ld;
 document.getElementById('iframe').style.visibility="visible";
 			}

function checkForm2(){
			var error = 0;

			if(document.subform.postcode.value.length <1){
			error++;
			alert("You MUST fill in the postcode field. Thanks!");
			}
			
			if(document.subform.firstname.value.length <1){
			error++;
			alert("We must have your name in case of queries! Thanks!");
			}
			if(document.subform.type.value.length <1){
			error++;
			alert("Please select a business type.");
			}
			if(document.subform.address1.value.length <1){
			error++;
			alert("Don't forget to tell us your address");
			}
			if(document.subform.email.value.length <1){
			error++;
			alert("We must have your email address in case of queries! Thanks!");
			}
			if(document.subform.telephone.value.length <1){
			error++;
			alert("We must have your telephone no. in case of queries! Thanks!");
			}
								
			email = document.subform.email.value;
			re = /.*@.*\.\w/;
			if (!(re.exec(email))){
			error++;
			alert("This does not appear to be a valid email address - please check and resubmit.");
			}

			////////card check for non-GB only////////
			if (document.subform.freesub.value < 1){
				if(document.subform.cardname.value.length <1 ){
				error++;
				alert("We must have the name as shown on your card! Thanks!");
				}
				if(document.subform.cardnumber.value.length <1 ){
				error++;
				alert("We must have your card number! Thanks!");
				}				
				if(document.subform.cvs.value.length <1 ){
				error++;
				alert("We must have your CVS number! Thanks!");
				}				
				if((document.subform.cardtype=="Maestro")&& (document.subform.issue.value<1)){
			  	error++;
				alert("Please enter your Maestro Card issue no.");
				}
				if((document.subform.cardtype=="Visa Debit")&& (document.subform.issue.value<1)){
			 	 error++;
				alert("Please enter your Visa Debit Card issue no.");
				}				
			}///end card check			
			
			if(document.subform.country.value != "GB" && document.subform.cardnumber.value.length <1){
			error++;
			alert("Sorry - IMAGES is not free to non-UK subscribers.Please enter your payment details");
			}else{
					if (error < 1 ) {
					document.subform.submit();
						}

			}//end else
	}//end function
			
function checkForm2a(){
                         

			var error = 0;

			if(document.subform.postcode.value.length <1){
			error++;
			alert("You MUST fill in the postcode field. Thanks!");
			}
			
			if(document.subform.firstname.value.length <1){
			error++;
			alert("We must have your name in case of queries! Thanks!");
			}
			if(document.subform.type.value.length <1){
			error++;
			alert("Please select a business type.");
			}
			if(document.subform.address1.value.length <1){
			error++;
			alert("Don't forget to tell us your address");
			}
			if(document.subform.email.value.length <1){
			error++;
			alert("We must have your email address in case of queries! Thanks!");
			}
			if(document.subform.telephone.value.length <1){
			error++;
			alert("We must have your telephone no. in case of queries! Thanks!");
			}
								
			email = document.subform.email.value;
			re = /.*@.*\.\w/;
			if (!(re.exec(email))){
			error++;
			alert("This does not appear to be a valid email address - please check and resubmit.");
			}

			////////card check for non-GB only////////
			if (document.subform.subtype[1].checked || document.subform.subtype[2].checked){
			    re = /\d/;

				if(document.subform.cardname.value.length <1){
				error++;
				alert("We must have the name as shown on your card! Thanks!");
				}
				if(document.subform.cardnumber.value.length <1 || !re.test(document.subform.cardnumber.value) ){
				error++;
				alert("We must have your card number! Thanks!");
				}

				if(document.subform.cvs.value.length <1 ){
				error++;
				alert("We must have your CVS number! Thanks!");
				}				
				if((document.subform.cardtype=="Maestro")&& (document.subform.issue.value<1)){
			  	error++;
				alert("Please enter your Maestro Card issue no.");
				}
				if((document.subform.cardtype=="Visa Debit")&& (document.subform.issue.value<1)){
			 	 error++;
				alert("Please enter your Visa Debit Card issue no.");
				}				
			}///end card check			
			
			if(document.subform.country.value != "GB" && document.subform.cardnumber.value.length <1){
			error++;
			alert("Sorry - IMAGES is not free to non-UK subscribers.Please enter your payment details");
			}else{
					if (error < 1 ) {
					document.subform.submit();
						}

			}//end else
	}//end function
			

