function numbersonly(myfield, e) {
	var key;
	var keychar;

	if (window.event) { key = window.event.keyCode;	} 
	else if (e) { key = e.which; }
	else { return true;	}

	keychar = String.fromCharCode(key);

	// control keys
	if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) )
	{
	   return true;
	}
	else if ((("0123456789").indexOf(keychar) > -1)) 
	{
	   return true;
	}
	else if (key == 13 && (myfield.value == ""))
	{
		alert('Please enter numbers only');
		return false;
	} else 	{ return false;	}
}

function writeFlash(mov,w,h)
{
	document.write('<object type="application/x-shockwave-flash" data="'+mov+'" width="'+w+'" height="'+h+'"><param name="movie" value="'+mov+'" /></object>');
}

function confirmCancel(form1)
{
	if (confirm('Are you sure you want to cancel this service?'))
	{
		form1.submit();
	}
}

function showAddress(ext,domain,name,addtxt)
{
	var add = name + '@' + domain + '.' + ext;
	if (addtxt == "")
		addtxt = add;
	document.write('<a href="mail' + 'to:' + add + '">' + addtxt + '</a>');
}