// JavaScript Functions for TCNC
function blankme()
	{
	if (document.addmail.email.value == "name@email.com")
		{
		document.addmail.email.value = ""
		}
	}
	
function getstuff()
	{
 if ((document.addmail.email.value == "name@email.com") || (document.addmail.email.value.indexOf("script") > -1) || (document.addmail.email.value.indexOf("function") > -1) || (document.addmail.email.value == "")) {
		//do nothing
		}
		else
		{
        alert ('enter');
		part2 = document.addmail.email.value;
		myurl = "/addemail.asp?email=" + part2;
		window.open(myurl,'emailWin','width=240,height=200');
		}
	}

function NewWindow(mypage, myname, w, h, scroll) 
	{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}

function NewWindow1(mypage, myname, w, h, scroll) 
	{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}
	
function vipWindow1(mypage, myname, w, h, scroll) 
	{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}
	
function disableSelection(target)
	{
	if (typeof target.onselectstart!="undefined") //IE route
		target.onselectstart=function(){return false}
	else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
		target.style.MozUserSelect="none"
	else //All other route (ie: Opera)
		target.onmousedown=function(){return false}
	target.style.cursor = "default"
	}

	//disableSelection(document.body) //Disable text selection on entire body
	//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"

// End JavaScript Functions for TCNC
