function CheckEmailSyntax(src) {
     var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
     var regex = new RegExp(emailReg);
     return regex.test(src);
 }
 function ViewInfo(sUrl, sType) {
 	var sAttributes = 'width=400, height=500, scrollbars=yes, resizable=yes'
 	if(sType=='receipt') { 
		sAttributes = 'width=500, height=600, scrollbars=yes, resizable=yes'
	}
	
	var InfoWin = window.open(sUrl, 'InfoWin', sAttributes)
 }
function CheckNewsletterForm(){
	if(CheckEmailSyntax(document.frmNewsLetter.sEmailAdress.value)==false){
		alert('Var vänlig ange en giltig e-postadress!');
		document.frmNewsLetter.sEmailAdress.focus();
		return false;
	}
}