//common javascript functions for suzannemorlock.com

//popWin - opens a popup window with no contols
//url is contents of window
//wname is window name
function popWin(url, wname) {
	window.open(url,wname,
	"toolbar=no,menubar=no,status=no,directories=no,scrollbars=yes,location=no,titlebar=no");
}

//goBack - opens user's previous page, same as browser back button
function goBack() {
	window.history.back();
}
// puttext - sets href of e-mail link to actual address. IE9 does not like %40 format
function puttext(){
	var at = "\x40";
	var com = "co\x6d";
	var domain ="suza\x6e\x6ee\x6dor\x6c\x6f\x63k";
	var dot = "\x2e";
	var male2 = "";
	var nam = "u\x6e\x73\x75\x62\x73\x63\x72ibe";
male2 = String.fromCharCode(109, 97, 105, 108, 116, 111, 58);
document.getElementById('male').href = male2.concat(nam, at, domain, dot, com);
}
