/*
 * Create email adresses
 * Used instead of mailto: for preventing spam
 */
 
 
sendMail = function(user,domain) {
	try {
		locationstring = "mailto:" + user + "@" + domain; 
		window.location = locationstring; 
	}
	catch(error) {
		errorMessage(error, "There was an error when trying to send mail to:\n\n"+user+"@"+domain);
		return false;
	}
}


/*
 * Resizable pop up script
 */

		function PopupPic(sPicURL) { 
     window.open( "pop.asp?"+sPicURL, "pop",  
     "resizable=1,height=100,width=100"); } 

//////////////////////////////////////////////////


// Open Popup 

openPopup = function(mypage,w,h,scroll,resizable,Lpos,Tpos) {
	var win = null;
	
	settings = 'height='+h+',width='+w+',top='+Tpos+',left='+Lpos+',scrollbars='+scroll+',resizable='+resizable+'';
	
	win = window.open(mypage,"popUp",settings)
	win.focus();
}
