function openWindow(documentName) {
   var pp=window.open(documentName, "popup", "width=500,height=500,center,toolbar=no,location=no,directories=0,status=no,menubar=no,scrollbars=yes,resizable=yes");
}

function openWindowmap(documentName) {
   var winName = window.opener.name;
   window.open(documentName,winName,'');
}

function eFriend()  {
	u = escape(window.location);
	eSubj= "Hey take a look at this page";

	var eAdd= prompt('Enter your friend\'s email address:',' ');
	if (eAdd) {
		window.location="mailto:"+eAdd+"?subject="+eSubj+"&body="+document.title+" "+u;
	}
}

function formTermsCheck()
{
  if (!document.getElementById('terms').checked)
  {
    alert('Please verify that you have read and agreed to be bound by our Terms and Conditions');
    return false;
  }
  return true;
}

//faq start

if (document.getElementById){
	document.write('<style type="text/css">\n');
	document.write('.faqcontent{display:none;}\n');
	document.write('</style>\n');
}

function contractall(){
	if (document.getElementById){
		var inc=0
		while (document.getElementById("dropmsg"+inc)){
			document.getElementById("dropmsg"+inc).style.display="none";
			inc++;
		}
	}
}

function expandone(){
	if (document.getElementById){
		var selectedItem=document.dropmsgform.dropmsgoption.selectedIndex;
		contractall();
		document.getElementById("dropmsg"+selectedItem).style.display="block";
	}
}

if (window.addEventListener) {
	window.addEventListener("load", expandone, false);
} else if (window.attachEvent) {
	window.attachEvent("onload", expandone);
}

function ChangeFontSize(id, size) 
{
	var iLayer=document.getElementById(id);
	iLayer.style.fontSize = size;

	var x = iLayer.getElementsByTagName("a");
	var y = iLayer.getElementsByTagName("td");
	var z = iLayer.getElementsByTagName("p");
	var t = iLayer.getElementsByTagName("font");
	var p = iLayer.getElementsByTagName("li");

	for(var i = 0; i < x.length; i++) 
	{
		x.item(i).style.fontSize = size;
	}	
	for(var i = 0; i < y.length; i++) 
	{
		y.item(i).style.fontSize = size;
	}	
	for(var i = 0; i < z.length; i++) 
	{
		z.item(i).style.fontSize = size;
	}	
	for(var i = 0; i < t.length; i++) 
	{
		t.item(i).style.fontSize = size;
	}	
	for(var i = 0; i < p.length; i++) 
	{
		p.item(i).style.fontSize = size;
	}	
}
//faq end
