// Pop Up function
function popUpA(page,name,w,h,type)
{ 
	var randomnumber=Math.floor(Math.random()*11)
	name = (name+randomnumber);
	page = page.split(" ").join("%20");
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	switch (type){
	case 1:
	winprop='height='+h+',width='+w+',top='+wint+',left='+winl+',resizable,scrollbars,toolbar,menubar,status,location,directories';
	break;
	case 2:
	winprop='height='+h+',width='+w+',top='+wint+',left='+winl+',resizable,toolbar,menubar,status,location';
	break;
	case 3:
	winprop='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars,toolbar,menubar,status,location,directories';
	break;
	case 4:
	winprop='height='+h+',width='+w+',top='+wint+',left='+winl+',resizable,scrollbars';
	break;
	default:
	winprop='height='+h+',width='+w+',top='+wint+',left='+winl+',resizable,scrollbars,toolbar,menubar,status,location,directories';
	}
	bar=window.open(page,name,winprop);
	bar.focus();
}
function printerFriendly(ttl)
{ 
  var disp_setting="toolbar=yes,location=yes,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=660, height=600, left=100, top=25"; 
  var content_vlue = document.getElementById("print_content").innerHTML; 
  var docprint=window.open("","",disp_setting); 
   docprint.document.open();
   docprint.document.write('<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n');
   docprint.document.write('<html>\r\n');
   docprint.document.write('<head>\r\n');
   docprint.document.write('<title>Feeney Wireless</title>\r\n');
   docprint.document.write('<link rel=\"stylesheet\" href=\"/styles/print.css\" type=\"text/css\">\r\n');
   docprint.document.write('</head>\r\n');
   docprint.document.write('<body onClick=\"javascript:;return false;\" onLoad=\"self.print();\">\r\n');
   docprint.document.write('<div style=\"margin-bottom:25px;\"><img style=\"position:relative;z-index:9999;\" src=\"/images/site/print_logo.png\" width=\"357\" height=\"61\" /></div>');
   /* docprint.document.write('<h1>'+ttl+'</h1>'); */
   docprint.document.write(content_vlue);         
   docprint.document.write('<div style=\"text-align:right;clear:both;\">&copy; Copyright 2009 Feeney Wireless, LLC. All rights reserved<div/>\r\n'); 
   docprint.document.write('</body>\r\n'); 
   docprint.document.write('</html>');
   docprint.document.close(); 
   docprint.focus();
}
function inputFocus(theForm,theInput){
var doc=document;eval("doc."+theForm+"."+theInput+".focus()");
} 
// Javascript Confirm Function
function confirmThis(formorlink,type,msg) {
var doc=document;
if(!msg || msg.length ==0){ msg = "Are you sure you want to continue?"; }            
var CoNfirM = confirm(msg)
if(CoNfirM && type=="form"){ doc.formorlink.submit(); }
else if(CoNfirM && type=="link"){ doc.location.href=formorlink; }
else {return false;}
}
function alertThis(msg){
if(!msg || msg.length ==0){ msg = "Attention!"; }alert(msg);
}
function pagePreLoad() {
  var d=document;
  if(d.images){if(!d.pL){d.pL=new Array();}var i,j=d.pL.length,a=pagePreLoad.arguments;for(i=0; i<a.length; i++){if (a[i].indexOf("#")!=0){d.pL[j]=new Image;d.pL[j++].src=a[i];}}}}
function sitePreLoad() {
var theseImages = new Array('/images/site/bg_fade.jpg','/images/site/head_nav_tlcurve.gif','/images/site/head_nav_trcurve.gif')
var d=document;
if(d.images){if(!d.pL){d.pL=new Array();}var i,j=d.pL.length,a=theseImages;for(i=0; i<a.length; i++){if (a[i].indexOf("#")!=0){d.pL[j]=new Image;d.pL[j++].src=a[i];}}}
}