
var gAutoPrint = true; // Tells whether to automatically call the print function
function printSpecial()
{

  if (document.getElementById != null)
    {

       var html = '<HTML>\n<HEAD>\n';
			if (document.getElementsByTagName != null)
				{
				var headTags = document.getElementsByTagName("head");
				if (headTags.length > 0)
				html += headTags[0].innerHTML;
				}

				html += '\n</HEAD>\n<BODY>\n';

				var printReadyElem = document.getElementById("printReady");

				if (printReadyElem != null)
				{
				html += printReadyElem.innerHTML;
				}
				else
				{
				alert("Could not find the printReady function");
				return;
				} 

				html += '\n</BODY>\n</HTML>';
				if (gAutoPrint)
				window.print();
		}
			else
			{
			alert("The print ready feature is only available if you are using an browser. Please update your browswer.");
			}
			
    }
	
	
	
function CreateBookmarkLink(j,a) {
	title=a;
	url=j;
   	if (window.sidebar) { // Mozilla Firefox Bookmark
    	window.sidebar.addPanel(title, url,"");
   	}
	else if( window.external ) { // IE Favorite
    	window.external.AddFavorite( url, title);
	}
   	else if(window.opera && window.print) { // Opera Hotlist
    	return true;
	}
}

function viewlocale(x,y,z){window.open("./gtest/API.asp?long1="+x+"&latt="+y+"&adr="+z+"","jhb","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=NO,TOP=1,LEFT=1,WIDTH=530,HEIGHT=330"); }