//VALIDATE E-MAIL ADDRESS
function CorrectEmailaddress(SubscriberForm){
if (SubscriberForm.pf_Email.value.length > 255)
{
alert("You can only type 255 letters in \"E-postadress\" field.");
SubscriberForm.pf_Email.focus();
return (false);
 }
if (SubscriberForm.pf_Email.value == "")
{
alert("Give the value for the \"E-postadress\" field.");
SubscriberForm.pf_Email.focus();
return (false);
 }
if (SubscriberForm.pf_Email.value.length < 7)
{
alert("You have to type at least 7 letters in \"E-postadress\" field.");
SubscriberForm.pf_Email.focus();
return (false);
 }
pf_Email=SubscriberForm.pf_Email.value
at=pf_Email.indexOf("@");
lastat=pf_Email.lastIndexOf("@");
dot=pf_Email.lastIndexOf(".");
if(at<1||at!=lastat||dot<at){
alert("Your e-mail address is incorrect, please type it again.");
return false;}
}

//POPUP
function LocatorWindow(page) {
	OpenWin = open(page, "CtrlWindow", "toolbar=no,resizable=no,menubar=no,location=no,scrollbars=yes,width=640,height=500");
	OpenWin.focus();
}

function screenWindow(popUp) {
	OpeWin = open(popUp, "CtrlWindow", "toolbar=no,resizable=no,menubar=no,location=no,scrollbars=no,width=811,height=610");
	OpeWin.focus();
}

function thanksWindow(popUp) {
	OpeWin = open(popUp, "CtrlWindow", "toolbar=no,resizable=no,menubar=no,location=no,scrollbars=no,width=300,height=150");
	OpeWin.focus();
}

// PRELOADING IMAGES/ON MOUSE OVER FX
if (document.images) {
	img1_on =new Image(); img1_on.src ="img/lan1b.gif"; 
	img1_off=new Image(); img1_off.src="img/lan1a.gif"; 

	img2_on =new Image(); img2_on.src ="img/lan2b.gif"; 
	img2_off=new Image(); img2_off.src="img/lan2a.gif"; 

	img3_on =new Image(); img3_on.src ="img/lan3b.gif"; 
	img3_off=new Image(); img3_off.src="img/lan3a.gif"; 
 
	img4_on =new Image(); img4_on.src ="img/lan4b.gif"; 
	img4_off=new Image(); img4_off.src="img/lan4a.gif"; 
}

function movr(k) {
	if (document.images) 
 		eval('document.img'+k+'.src=img'+k+'_on.src');
	}

function mout(k) {
	if (document.images) 
		eval('document.img'+k+'.src=img'+k+'_off.src');
	}

function handleOver() {
	if (document.images) 
		document.imgName.src=img_on.src;
	}

function handleOut() {
	if (document.images) 
		document.imgName.src=img_off.src;
	}