var title = document.title;
var url = document.URL;

function expDiv(what){
	var divs = document.getElementById(what);
	if (divs.style.display!="none"){
		divs.style.display="none";
		}
	else {
		divs.style.display="inline";
		}
	}

function openPop(){
	var w = window.open("contactform.html","contactform","top=200,left=300,width=450,height=330,scrollbars=no,resizeable=no")
	
	}

function printPage(){
	var gut = url.lastIndexOf("/");
	var which = url.substr(gut+1,url.length-1);
	var ins = url.substr(0,gut);
		window.open(ins+"/print/"+which,"new","width=700,height=370,menubar=yes,statusbar=yes,scrollbars=yes,resizeable=no");
	}

function bookMark(){
	if (document.all){
		window.external.AddFavorite(url, title);
		}
	else if (window.sidebar){
		window.sidebar.addPanel(title, url, "")
		}
	}
      
function saving(){			
	document.execCommand("SaveAs");
	}

      function saveAs(){
	if (document.all){
		document.writeln("<a href='#' onclick='saving();return false;'><img src='img/icon_saveas.gif' width='16' height='16' border='0' alt='Save this page as'></a>");
		}
	}
      
function frmValid(){
	var myForm = document.regopp.elements;
	
	for (var f=0;f<myForm.length;f++){
		if ((myForm[f].value==0)||(myForm[f].value=="")){
			if (myForm[f].name=="FirstName"){
				alert("Please do not leave FIRST NAME blank");
				return false;
				}
			else if (myForm[f].name=="LastName"){
				alert("Please do not leave LAST NAME blank");
				return false;
				}
			else if (myForm[f].name=="Email"){
				alert("Please do not leave E-MAIL ADDRESS blank");
				return false;
				}
			else if (myForm[f].name=="Phone"){
				alert("Please do not leave PHONE NUMBER blank");
				return false;
				}
			}
		}
	}
