function zoom(a,w,h)
	{
	window.open( a, w, 'width=' + w + ', height=' + h + ', scrollbars=auto, resizable=yes' );
	}
	
function outwindow() 
	{ 
	if (!document.getElementsByTagName) return; 
 	var anchors = document.getElementsByTagName("a"); 
 	for (var i=0; i<anchors.length; i++) 
 		{ 
   		var anchor = anchors[i]; 
   		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 
    		anchor.target = "_blank"; 
 		} 
	} 
	
function filled(field) { return (field.value == "" || field.value == null || field.value == " ") ? false  : true; }
function validate()
	{
	themessage = "";
	themessage = ((!filled(document.hermanceform.email)) || ((!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.hermanceform.email.value)))) ? themessage + "Please provide a valid email address.\nie: you@domain.com\n\nThank you" : themessage;
	(themessage == "") ? document.hermanceform.submit() : alert(themessage); return false;
	}	
	
window.onload = outwindow;