function getcode() {	email = document.scriptform.email.value;	thesubject = document.scriptform.subject.value;	linktext = document.scriptform.linktext.value;	mailsubject = (thesubject == "") ? "" : "?subject=" + thesubject;	var prefix = email.substring(0,email.indexOf("@"));	var domain =  email.substring((email.indexOf("@") + 1),email.length) ;		domain = domain + mailsubject;	total = prefix + "@" + domain;		thescript = '<script language="javascript">' + "\n<!--" + "\nvar part1 = " + '"' + prefix + '"' + ";\nvar part2 = " + '"' + domain + '"' + ";\nvar part3 = " +  '"' + linktext + '"' + ";\ndocument.write('<a href=\"mai' + 'lto:' + part1 + '@' + part2 + '\">')" + ";\ndocument.write(" + "part3 + '</a>')" + ";\n// -->" + "\n<" + "/script>";   	document.thecode.result.value = thescript;	samplecode = "<a href='mailto:" + total + "'" + ">" + linktext + "</a>";	document.getElementById('livesample').innerHTML = samplecode;		googlesearch = (thesubject == "") ? total : total.substring(0,total.indexOf("?"));	document.forms[2].elements[0].value = googlesearch;	}function selectcode() {	document.thecode.result.select();	document.thecode.result.focus();	}		var detect = navigator.userAgent.toLowerCase();function checkIt(){	place = detect.indexOf("safari");	if (place != -1)	{	alert("If you are using Safari and experience problems with the layout of this page, please press the 'Reload' button in your browser.");	}}		