<!--
PROMPT_TFN = "Your Toll-Free #"; 
// PROMPT_PIN = "Your PIN #"; 
function showMailMe(mailname, domain, display)
{
	// Using Contact Page
	document.write('<a class="bodytext" href="/Content/Contact_us.aspx"><font color="#FFFFFF">' + display + '</font></a>');

	// Using MailTo
	// document.write('<a href="mailto:');
	// document.write(mailname);
	// document.write('@');
	// document.write(domain);
	// document.write('">' + display + '</a>');
}
function x_WebLinkTour()
{
	windowprops = "directories=no,location=no,menubar=yes,scrollbars=yes,status=no,toolbar=no,resizable=yes";
	var page = "https://www.onlinesecureorderform.com/tour/WebLink1.html"
	popup = window.open(page,'WebLink', windowprops)
}
function LogHelp()
{
	wh=0
	ww=0
	windowprops = "width=300,height=200,directories=no,location=no,menubar=yes,scrollbars=yes,status=no,toolbar=no,resizable=yes, left=" + ww + ",top=" + wh + ",screenX=" + ww + ",screenY=" + wh;
	var page = "/Content/LogHelp.htm"
	popup = window.open(page,'loghelp', windowprops)

}
function checkFields() 
{
	// Trim input fields
	document.forms["login-form"].phoneNumber.value = trim(document.forms["login-form"].phoneNumber.value);
	document.forms["login-form"].pin.value = trim(document.forms["login-form"].pin.value);

	// alert("." + document.forms["login-form"].phoneNumber.value + "." + " xx " + "." + document.forms["login-form"].pin.value + ".")
	// return false;

	if (document.forms["login-form"].phoneNumber.value == "")
	{
		alert("Please enter your toll-free number")
		return false;
	}
	//---------------------------------------------
	if (document.forms["login-form"].pin.value == "")
	{
		alert("Please enter your PIN number")
		return false;
	}
	//---------------------------------------------	
	return true;
}
function clearTollFree()
{
	// Get handle to fields
	txtPhone = document.forms["login-form"].phoneNumber;

	// Check and clear if necessary
	if (PROMPT_TFN == txtPhone.value)
	{
		txtPhone.value = "";
	}
}
function trim(inString) { 
	if (inString != null && inString.length > 0) { 
		// Trim spaces at the beginning of the string 
		start = 0; 
		while(inString.charAt(start) == " ") start++; 

		// Trim spaces at the end of the string 
		end = inString.length; 
		while ((end > start) && (inString.charAt(end-1) == " ")) end--; 
		
		// Save trimmed string
		outString = inString.substring(start, end); 
	} 
	else {
		outString = "";
	}
	// Return trimmed string
	return outString; 
}
function SwitchMenu(obj){
  var imgname = obj.substring(3);
  imgname = "imgsub" + imgname;
  if(!obj) { return; }
  var el = document.getElementById(obj);
  if(el.style.display != "block")
  {
    el.style.display = "block";
    document.images[imgname].src = "/images/collapse.jpg";
  }
  else
  {
    el.style.display = "none";
    document.images[imgname].src = "/images/expand.jpg";
  }
}
function deleteCookie(name) {
    saveCookie(name,"",-1)
}
function saveCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000))
    var expires = "; expires="+date.toGMTString()
  }
  else expires = ""
  document.cookie = name+"="+value+expires+"; path=/"
}
// -->
