function goScott(){
var x = document.scottform.scottoptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goDeer(){
var x = document.deerform.deeroptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goMark(){
var x = document.markform.markoptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goBrian(){
var x = document.brianform.brianoptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goBill(){
var x = document.billform.billoptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goJeff(){
var x = document.jeffform.jeffoptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goFeatures(){
var x = document.featuresform.featuresoptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goPlatek(){
var x = document.platekform.platekoptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goPalazzo(){
var x = document.palazzoform.palazzooptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goLamb(){
var x = document.lambform.lamboptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goFrank(){
var x = document.frankform.frankoptions.value;
if (x > 0){
window.location='imagesarticle.php?article_id=' + x ;
	}
}
function goTerry(){
var x = document.terryform.terryoptions.value;
if (x > 0){
window.location='imagesarticle.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!");
			}
			if(document.subform.country.value.length <1){
			error++;
			alert("Please select a country");
			}else{
			if (error < 1 ) {
					document.subform.submit();
						}

			}
	}
			

function checkOverseas(){
		
		if(document.subform.country.value != "GB"){
		
		newWindow=open("","newWindow","width=275,height=130,toolbar=no,menubar=no");
		newWindow.document.write('<BODY BGCOLOR="yellow">');
		newWindow.document.write('<FONT FACE="Arial,Helevetica" SIZE=2>');
		newWindow.document.write('<CENTER><IMG SRC="imagessmall.gif" WIDTH="130" HEIGHT="27" VSPACE="10" HSPACE="30" BORDER="0"></CENTER>');
		newWindow.document.write('Non-UK subscribers must pay postal charges - see top of page. Click <A HREF="https://www.images-magazine.com:453/cgi-bin/images_store/web_store.cgi" TARGET="_blank">here</A> to subscribe online using our secure server.');
		newWindow.document.close();
		}
	}

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){
				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
			
