<!--
//Global Variables
var currentPage;

//ONLOAD indicate the page you're on

function highlight() {
	var fullPathNameArray = new Array();
	fullPathNameArray = window.location.pathname.split(/[\/,\\]/);
	currentPage = fullPathNameArray[fullPathNameArray.length -1];

	if (currentPage=="" || currentPage == null)
	{currentPage="default.asp"};
	
	document.getElementById(currentPage).style.color='rgb(102,102,204)';
	document.getElementById(currentPage).style.fontWeight='bold';
	document.getElementById(currentPage+'GT').style.visibility="visible";		
}


//onMouseover show hidden sign

function show(ID) {
	document.getElementById(ID+'GT').style.visibility="visible";		
}

//onMouseout hide sign (unless it's the current menu selection)

function hide(ID) {
	if (ID==currentPage)
	{document.getElementById(currentPage+'GT').style.visibility="visible";
	}
	else
	{document.getElementById(ID+'GT').style.visibility="hidden";
	}
}

// lightweight hiding of email address

function mailRHF1(sub1,sub2) 
{
 var username = 'info';
 var domain = 'radioheritage.net';
 var subject = '?subject=';
 var content = '&body=';
 document.location = 'mailto:' + username + '@' + domain + subject + sub1 + content + sub2;
 } 

// lightweight hiding of email address for PAL

function mailPAL1(sub1,sub2) 
{
 var username = 'bportzer';
 var domain = 'comcast.net';
 var subject = '?subject=';
 var content = '&body=';
 document.location = 'mailto:' + username + '@' + domain + subject + sub1 + content + sub2;
 } 

function mailRMRC(sub1,sub2) 
{
 var username = 'DrGabler';
 var domain = 't-online.de';
 var subject = '?subject=';
 var content = '&body=';
 document.location = 'mailto:' + username + '@' + domain + subject + sub1 + content + sub2;
 } 

function validate1( form )
{
 if (form.palp2.value == "") {

alert('Please enter an email address to search the PAL.' );
form.palp2.focus();
return false ;
  }
}

function validate2( form )
{
  if (form.join_a.value == "" ||
	form.join_a.value.indexOf('@', 0) == -1 ||
	form.join_a.value.length>50) 
 {

    alert('Please enter an email address' );
    form.join_a.focus();
    return false ;
  }
document.getElementById("ta").style.visibility="visible";
}

function validate3( form )
{
 if (form.LPFM_M.value=="") {

alert('Please enter an email address' );
form.LPFM_M.focus();
return false ;
  }
}

function check(sub)
{

if (sub=="SW") {
document.getElementById("band_select").src="PAL_Search_SW.asp";
}
if (sub=="MW") {
document.getElementById("band_select").src="PAL_Search_MW.asp";
}
}

function validate4( form )
{
  if 	(form.join_PKR.value == "" ||
	form.join_PKR.value.indexOf('@', 0) == -1 ||
	form.join_PKR.value.length>50) 

{
    alert('Please enter a valid email address' );
    form.join_PKR.focus();
    return false ;
  }
}

function validate5( form )
{
  if 	(form.BRR_email.value == "" ||
	form.BRR_email.value.indexOf('@', 0) == -1 ||
	form.BRR_email.value.length>50) 
{
    alert('Please enter a valid email address' );
    form.BRR_email.focus();
    return false ;
  }
}
//-->

