function isMsie4orGreater() {
	var ua = window.navigator.userAgent;
	var msie = ua.indexOf ( "MSIE " );
	if  (msie > 0) {
		return (parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) ) >=4) && (ua.indexOf("MSIE 4.0b") <0) ;
	} else {
		return false;
	}
}

function loadTune() {
	if (navigator.appName == "Microsoft Internet Explorer") {
		if (isMsie4orGreater()) {
			document.writeln('<embed src="sound/NOTHINGE.MID" width=70 height=46 autostart="true">')
		} else {
			document.writeln('<bgsound src="sound/NOTHINGE.MID" LOOP=1>')
		}
	} else {
		document.writeln('<embed src="sound/NOTHINGE.MID" width="146" height="60" autostart="true">')
	}
}

function openWindow(theURL,winName,features) { //v2.0
		new_window=window.open(theURL,winName,features);
		new_window.focus(); 
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function Posting() { //v2.0
	d = document.feedback
	x = d.user.value
	y = d.txtmsg.value

	if (x.length > 0 )
	 {
		if (y.length > 0)
		{
			return true;
		}
		else
		{
			alert("Please enter a valid comment.");
			return false;
		}
	 }
	else
	 {
	 alert("Please enter name before submitting.");
	 return false;
	 }
}

function Posting2() { //v2.0
	d = document.myForm
	x = d.ResName.value
	y = d.ResEmail.value.indexOf("@")

	if (x.length > 0 )
	 {
		if (y > 0)
		{
			return true;
		}
		else
		{
			alert("Please enter a valid email.");
			return false;
		}
	 }
	else
	 {
	 alert("Please enter name before submitting.");
	 return false;
	 }
}

var oldcolor;
//var oldletterspacing;

function rollon() {
	oSource = event.srcElement;
	//if (oSource.className != "clSubLinks")
	if (oSource.className.indexOf("Links")>=0)
	{
	oSource.style.textDecoration="underline";
	//alert(window.event.srcElement.className);
	oldcolor=oSource.style.color;
	//oldletterspacing=oSource.style.letterSpacing;
	
	//oSource.style.letterSpacing="0.2mm";
	oSource.style.color="blue";
	//oSource.style.backgroundColor="darkorange";
	}
}

function rolloff() {
	oSource = event.srcElement;
	if (oSource.className.indexOf("Links")>=0)
	{
	oSource.style.textDecoration="none";
	oSource.style.color=oldcolor;
	//oSource.style.letterSpacing=oldletterspacing;
	//oSource.style.backgroundColor="white";
	}
}
	
