<!--

// Display Date
function displayclock () {
	var now   = new Date();
	var month = "";
	var year  = "";
	var date  = now.getDate();
	var browserName = navigator.appName.toLowerCase(); 
	
	if (now.getMonth() == 0) month = "January"
	if (now.getMonth() == 1) month = "February"
	if (now.getMonth() == 2) month = "March"
	if (now.getMonth() == 3) month = "April"
	if (now.getMonth() == 4) month = "May"
	if (now.getMonth() == 5) month = "June"
	if (now.getMonth() == 6) month = "July"
	if (now.getMonth() == 7) month = "August"
	if (now.getMonth() == 8) month = "September"
	if (now.getMonth() == 9) month = "October"
	if (now.getMonth() == 10) month = "November"
	if (now.getMonth() == 11) month = "December"
	if (now.getYear() < 100) year = "19" + now.getYear()
	
	if (browserName.indexOf("microsoft") != -1) {
		if (now.getYear() >= 100) year = now.getYear()
	} else {
		if (now.getYear() >= 100) year = "20" + now.getYear() - 18100
	}
	
	if (now.getDay() == 0) day = "Sunday"
	if (now.getDay() == 1) day = "Monday"
	if (now.getDay() == 2) day = "Tuesday"
	if (now.getDay() == 3) day = "Wednesday"
	if (now.getDay() == 4) day = "Thursday"
	if (now.getDay() == 5) day = "Friday"
	if (now.getDay() == 6) day = "Saturday"
		
	document.write( month + " " + date + ", " + year)
}

// Book mark
function bookmark(url, description) {
	netscape="Netscape User's hit CTRL+D to add a bookmark to this site."
	if (navigator.appName=='Microsoft Internet Explorer')
	{
	window.external.AddFavorite(url, description);
	}
	else if (navigator.appName=='Netscape')
	{
	alert(netscape);
	}
}
// Jumpmenu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// Non spam email address
var user; 
var doJAVASCRIPT; 
var suffix; 
function jemail(user, doJAVASCRIPT, suffix){ 
document.write('<a href="' + 'mailto:' + user + '@' + doJAVASCRIPT + '.' + suffix + '">' + user + '@' + doJAVASCRIPT + '.' + suffix + '</a>');

} 
// Open Window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function validateLinkExchangeForm() {
		msg = ""
		if(!document.myform.selCategory.value) msg += "* Pick one Category for your link.\n"
		if(!document.myform.txtYourUrl.value) msg += "* Enter your website URL.\n"
		if(!document.myform.txtTitle.value) msg += "* Enter your website title.\n"
		if(!document.myform.txtDescription.value) msg += "* Enter your website description.\n"
		if(!document.myform.txtEmail.value) msg += "* Enter your E-mail address.\n"
		else if(!(document.myform.txtEmail.value.match(/\@/))) msg += "* Include the @ symbol in your E-mail Address.\n"
		else if(!(document.myform.txtEmail.value.match(/\S+\@\S+\.\S+/))) msg += "* Your E-mail Address must be in the format xxx@xxx.xxx\n"
	
		if (msg == ""){
		return true;
		}
		else
		{
		msg = "We Found The Following Problems With Your Form: \n\n" + msg;
		alert(msg);
		return false;
		}
	}

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}
// validate emailquote
function validateEmailQuote(form){
	var Email = "";
	// check txtEmailTo for email validity

	for (var i = 0; i <= form.txtEmailTo.length-1;i++){
		Email = form.txtEmailTo[i].value;
		if (Email != ""){
			if ((Email.indexOf("@") != -1) && (Email.indexOf(".") != -1)){
				return true;
			}
		}
	}
	return false;
}
//-->

