// JavaScript Document

function check_value()
	{
		if(document.getElementById('search').value == 'Enter a Location'){
			document.getElementById('search').value = "";
		} else if(document.getElementById('search').value == ""){
			document.getElementById('search').value = "";
		}
	}

function msg()
	{
		var location = document.getElementById('search').value;
		if(document.getElementById('search').value != 'Enter a Location' && document.getElementById('search').value != ''){
			alert("\""+ location +" \" will be located on the ZoomOx! map");
		} 
	}


var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'TOS','height=500,width=500,left=300,top=90');
	/*newwindow.document.write('<html><head><title>Terms Of Service</title>');
	newwindow.document.write('<link rel="stylesheet" href="style.css">');
	newwindow.document.write('</head><body>');
	newwindow.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
	newwindow.document.write('<tr>');
	newwindow.document.write('<td>');
	newwindow.document.write('<br>');
	newwindow.document.write('<center>This is terms of service page !!!</center>');
	newwindow.document.write('</td>');
	newwindow.document.write('</tr>');
	newwindow.document.write('</table>');
	newwindow.document.write('<p>This page was generated by the main window.</p>');
	newwindow.document.write('<br>');
	newwindow.document.write('<center><a href="javascript:self.close()">Close</a> the Window.</center>');
	newwindow.document.write('</body></html>');*/
	//newwindow.document.close();
	//if (window.focus) {newwindow.focus()}
}

