function clearLocator()
{
	if (document.ziplocator.zipcode.value == "ENTER ZIP")
	document.ziplocator.zipcode.value = "";
}
function setLocator()
{
	if (document.ziplocator.zipcode.value == "")
	document.ziplocator.zipcode.value = "ENTER ZIP";
}
// Alert users they are going to a 3rd party site
function leaveJIB(targetLink) 
{
	leaveSite = confirm('You are about to leave Jackinthebox.com');
	if(leaveSite){	window.open(targetLink);	}
}

// Career opportunities unload flash video, called from swf
function endFlash()
{
	document.getElementById('career-content').style.visibility = "visible";
	document.getElementById('career-video').style.display = "none";
}
// Swap window back to parent for corporate to brand crosslinking
function winSwap(winLink) {
	if (window.opener && window.opener.open && !window.opener.closed) {
		window.opener.location = winLink;
		window.opener.focus();
		}
	else {
		window.open(winLink, 'newwindow');
	}
}
// Text only version location text submit button
function submitForm()
{
	if(document.thisForm.zip_code.value.length==0) {
  	alert('Please Enter a Zip Code');
  } else {
  document.thisForm.submit() ;
  }
}