//prints the email address so harvesters can't put it on their spam lists.
function PrintEmail()
{
    var a = "aleaero.c";
    var b = "s@";
    var c = "j";
    var d = "am";
    var e = "e";
    var f = "om";
    var g = "hillsd";
    var complete = c + d + e + b + g + a + f;
    document.write("<a href='" + "mai" + "lto:" + complete + "?subject=website'>" + complete + "</a>");
    
    return true;
}

function PrintContactInfo()
{
	document.write(" Hillsdale Aero " +
			" <br /> " +
			" <span class='italics'>Hillsdale Municipal Airport</span> " +
			" <br /> " +
			" 3998 State Rd " +
			" <br /> " +
			" PO Box 238 " + 
			" <br /> " +
			" Hillsdale, Michigan  49242 " +
			" <br /> " +
			" <span class='bold'>USA</span> " +
			" <br /><br /> " +
			" <span class='bold'>Phone:</span> (517) 437-4755 " +
			" <br /> " + 
			" <span class='bold'>Fax:</span> &nbsp;&nbsp;&nbsp; (517) 439-0072 " +
			" <br /> " +
			" Email: ");
			
				
	return PrintEmail();
}

function PrintCreator()
{
	document.write("<br /><br />Created & Hosted by <a href='http://www.nonik.com/'>Nonik Technologies, Inc.<br />" +
			"<img id='NonikLogo' alt='Nonik Technologies, Inc. Logo' src='Pictures/Nonik_Logo.bmp' " + 
			" height='27' width='105' /></a> ");
			
}

function OpenWindow(newUrl)
{
	window.open(newUrl, 'Hillsdale_Aero', "width=800,height=600, location=yes, toolbar=yes, menubar=yes, status=yes, resizable=yes, scrollbars=yes");
	return true;
}

function OpenMap(searchSite)
{
	var url = "";
	switch(searchSite)
	{
		case "Expedia":
			url = "http://www.expedia.com/pub/agent.dll?qscr=mrfn&strt2=3998%20State%20Rd&city2=Hillsdale&stnm2=MI&zipc2=49242&cnty2=4";
			break;
		case "Yahoo":
			url = "http://maps.yahoo.com/dd?taddr=3998+State+Rd&tcsz=Hillsdale+MI+49242&tcountry=us";
			break;
		case "MapQuest":
			url = "http://www.mapquest.com/directions/main.adp?2a=3998+State+Rd&2c=Hillsdale&2s=MI&2z=49242";
			break;
		default: 
			return false;
	}
	
	return OpenWindow(url);
	
	
}

function ConfirmDelete(SN)
{
	var choice;
	choice = confirm("Are you sure you want to delete plane '" + SN + "' from your inventory?");
	
	return choice;
}

function ConfirmDeletePictures(SN)
{
	var choice;
	choice = confirm("Are you sure you want to delete the pictures for plane '" + SN + "'?");
	
	return choice;
}

function ConfirmDownloadFileDelete(SN)
{
	var choice;
	choice = confirm("Are you sure you want to delete the downloadable file for plane '" + SN + "'?");
	
	return choice;
}

function ChangePrintCSS()
{
	var CSS1 = "SpecStyle.css";
	var CSS2 = "StyleSheet1.css";
	
	document.getElementById('PrintCSS').href = CSS2;
	window.print();
	document.getElementById('PrintCSS').href = CSS1;	 
	 
	return true;
}

function PrintContactImage()
{
	document.write("<img id='bottom_info' align='center' alt='Address &amp; Phone Numbers' src='Pictures/bottom_banner.jpg' />");
	
}