function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		skywest_05_over = newImage("images/skywest_05-over.jpg");
		skywest_06_over = newImage("images/skywest_06-over.jpg");
		skywest_07_over = newImage("images/skywest_07-over.jpg");
		skywest_08_over = newImage("images/skywest_08-over.jpg");
		skywest_09_over = newImage("images/skywest_09-over.jpg");
		skywest_10_over = newImage("images/skywest_10-over.jpg");
		preloadFlag = true;
	}
}

function ShowLayer(id) {
	var thisDiv = document.getElementById(id);
	thisDiv.style.visibility = "visible";
}


function HideLayer(id) {
	var thisDiv = document.getElementById(id);
	thisDiv.style.visibility = "hidden";
}

function newWin(url,name,width,height,left,top,resize,menu,dir,scroll,locate,stat,tool,depend) {
		if (! url) { url="/"; }
		if (! name) { name="new_win"; }
		if (! width) { width=550; }
        if (! height) { height=350; }
		if (! left) { left=20; }
		if (! top) { top=20; }
		if (! resize) { resize=1; }
		if (! menu) { menu=0; }
		if (! dir) { dir=0; }
		if (! scroll) { scroll=1; }
		if (! locate) { locate=0; }
		if (! stat) { stat=0; }
		if (! tool) { tool=0; }
		if (! depend) { depend=1; }
				
        var remote=window.open(url,name,'resizable='+resize+',menubar='+menu+',scrollbars='+scroll+',location='+locate+',status='+stat+',toolbar='+tool+',dependent='+depend+',width='+width+',height='+height+',left='+left+',screenX='+left+',top='+top+',screenY='+top+',directories='+dir+'');
		remote.focus();
		return false;
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=no,width=820,height=470');");
}

function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=yes,scrollbars=yes,location=yes,statusbar=yes,menubar=yes,resizable=yes,width=820,height=590');");
}

function popUp3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=820,height=560');");
}

function popUp4(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=820,height=680');");
}

function popUp5(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=826,height=560');");
}

function popUp6(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=yes,scrollbars=yes,location=no,statusbar=yes,menubar=no,resizable=yes,width=800,height=590');");
}

function popUp_window(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,location=no,menubar=no,resizable=yes,directories=0,status=1,scrollbars=1,width=818,height=650');");
}

function popUp_window2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,location=no,menubar=no,resizable=yes,directories=0,status=1,scrollbars=1,width=792,height=650');");
}


function popUp_window3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,location=no,menubar=no,resizable=yes,directories=0,status=1,scrollbars=1,width=520,height=430');");
}

function popUp_smallwindow(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,location=no,menubar=no,resizable=no,directories=0,status=1,scrollbars=1,width=418,height=280');");
}

function popUpOH(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=yes,scrollbars=yes,location=no,statusbar=yes,menubar=no,resizable=yes,width=820,height=500');");
}

function popUpH(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=1002,height=640');");
}

<!-- Begin
function verify() {
var themessage = "You are required to complete the following fields: ";
if (document.form.FirstName.value=="") {
themessage = themessage + " - First Name";
}
if (document.form.LastName.value=="") {
themessage = themessage + " -  Last Name";
}
if (document.form.Bname.value=="") {
themessage = themessage + " -  Company Name";
}
if (document.form.Email.value=="") {
themessage = themessage + " -  E-mail";
}
if (document.form.Comments.value=="") {
themessage = themessage + " -  Comments";
}
//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}
//  End -->

<!-- Begin
function verifyCorpComm() {
var themessage = "You are required to complete the following fields: ";
if (document.form.FirstName.value=="") {
themessage = themessage + " - First Name";
}
if (document.form.LastName.value=="") {
themessage = themessage + " -  Last Name";
}
if (document.form.Bname.value=="") {
themessage = themessage + " -  Company Name";
}
if (document.form.Email.value=="") {
themessage = themessage + " -  E-mail";
}

//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}
//  End -->

<!-- Begin
function verify2() {
	var themessage = "You are required to complete the following fields: ";
	if (document.form.FirstName.value=="") {
		themessage = themessage + " - First Name";
	}
	if (document.form.LastName.value=="") {
		themessage = themessage + " -  Last Name";
	}
	if (document.form.PhoneNumber.value=="") {
		themessage = themessage + " -  Phone Number";
	}
	if (document.form.Email.value=="") {
		themessage = themessage + " -  Email";
	}
	if (document.form.Comments.value=="") {
	themessage = themessage + " -  Comments";
	}
	//alert if fields are empty and cancel form submit
	if (themessage == "You are required to complete the following fields: ") {
	document.form.submit();
	}
	else {
	alert(themessage);
	return false;
	   }
}
//  End -->

<!-- Begin
function verify3() {
	var themessage = "You are required to complete the following fields: ";
	if (document.form.FirstName.value=="") {
		themessage = themessage + " - First Name";
	}
	if (document.form.LastName.value=="") {
		themessage = themessage + " -  Last Name";
	}
	if (document.form.PhoneNumber.value=="") {
		themessage = themessage + " -  Phone Number";
	}
	if (document.form.Email.value=="") {
		themessage = themessage + " -  Email";
	}
	if (document.form.Comments.value=="") {
	themessage = themessage + " -  Comments";
	}
	
	//numbers only
	/*if (parseInt(document.forms[0].phone.value)  
       != document.forms[0].phone.value) { 
alert('Please enter a phone number, numbers only'); 
return false; 
} */



	Email = document.form.Email.value;
	Email2 = document.form.Email2.value;
	
	if (Email != Email2) {
	alert ("\nYou did not enter the same email twice. Please re-enter your email address.")
	return false;
	}

	//alert if fields are empty and cancel form submit
	if (themessage == "You are required to complete the following fields: ") {
	document.form.submit();
	}
	else {
	alert(themessage);
	return false;
	   }
}
//  End -->


<!-- Begin
function flight_attn() {
var themessage = "You are required to complete the following fields: ";
if (document.form.FirstName.value=="") {
themessage = themessage + " - First Name";
}
if (document.form.LastName.value=="") {
themessage = themessage + " -  Last Name";
}
if (document.form.PhoneNumber.value=="") {
themessage = themessage + " -  Phone Number";
}
if (document.form.Email.value=="") {
themessage = themessage + " -  E-mail";
}
if (document.form.Comments.value=="") {
themessage = themessage + " -  Comments";
}
//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}
//  End -->

<!-- Begin
function careercontact() {
var themessage = "You are required to complete the following fields: ";
if (document.form.FirstName.value=="") {
themessage = themessage + " - First Name";
}
if (document.form.LastName.value=="") {
themessage = themessage + " -  Last Name";
}
if (document.form.Email.value=="") {
themessage = themessage + " -  E-mail";
}
//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}
//  End -->


<!-- Begin Random Image Link
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="swapit/1.jpg"
myimages[2]="swapit/2.jpg"
myimages[3]="swapit/3.jpg"
myimages[4]="swapit/4.jpg"
myimages[5]="swapit/5.jpg"
myimages[6]="swapit/6.jpg"

//specify corresponding links below
var imagelinks=new Array()
imagelinks[1]="http://www.skywest.com"
imagelinks[2]="http://www.apple.com"
imagelinks[3]="http://www.shockwave.com"
imagelinks[4]="http://www.coolhomepages.com"
imagelinks[5]="http://www.gmunk.com"
imagelinks[6]="http://www.cnn.com"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href='+'"'+imagelinks[ry]+'"'+' target=blank><img src="'+myimages[ry]+'" border=0></a>')
}

//  End Random Image Link-->

<!-- Begin
function csform() {
var themessage = "You are required to complete the following fields: ";
if (document.form.fname.value=="") {
themessage = themessage + " - First Name";
}
if (document.form.lname.value=="") {
themessage = themessage + " -  Last Name";
}
if (document.form.email.value=="") {
themessage = themessage + " -  E-mail";
}
if (document.form.email2.value=="") {
themessage = themessage + " -  E-mail 2";
}
if (document.form.past.value=="") {
themessage = themessage + " -  Comments Pertain To";
}
if (document.form.type.value=="") {
themessage = themessage + " -  Nature Of Comment";
}
if (document.form.comment.value=="") {
themessage = themessage + " -  Comments";
}
//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}
//  End -->

<!-- Hide from old browsers


	var i = 1
	images = new Array
	images[1] = "../images/embseat_f.gif"
	images[2] = "../images/embseat_a.gif"
	

function gallery(){
	if (i == 1){
		document.gallery.previous.value="       "}
}
function previmg(){
	if (i != 1) {
		i --
		document.img.src = images[i]
		document.gallery.next.value = "Next"}
	if (i == 1) {
		document.gallery.previous.value="        "}
	
}

function nextimg(){
	if (i != 6) {
		i ++
		document.gallery.previous.value="Previous"
		image = images[i]
		document.img.src = image}
	if (i == 6){
		document.gallery.next.value="    ";}

}

// -- End Hiding Here -->



