function displaydate(){
	var time=new Date()
	var day=time.getDay()
	var month=time.getMonth()
	var date=time.getDate()
	var year=time.getYear()
	
	brow = (navigator.appName);
	if(brow == "Netscape"){
		year = year+1900;
	}
	if (day==0){
		dayname="Sun";
	} else if(day==1){
		dayname="Mon";
	} else if(day==2){
		dayname="Tue";
	} else if(day==3){
		dayname="Wed";
	} else if(day==4){
		dayname="Thu";
	} else if(day==5){
		dayname="Fri";
	} else if(day==6){
		dayname="Sat";
	}
	if (month==0){
		monthname="January";
	} else if(month==1){
		monthname="February";
	} else if(month==2){
		monthname="March";
	} else if(month==3){
		monthname="April";
	} else if(month==4){
		monthname="May";
	} else if(month==5){
		monthname="June";	
	} else if(month==6){
		monthname="July";
	} else if(month==7){
		monthname="August";
	} else if(month==8){
		monthname="September";
	} else if(month==9){
		monthname="October";
	} else if(month==10){
		monthname="November";
	} else if(month==11){
		monthname="December";
	}
	display = monthname + " " + date + ", " + year;
	document.write(display)
}
function NewSelectIt(newLoc){
	newPage = newLoc.options[newLoc.selectedIndex].value;
		if (newPage != "") {
			window.location.href = newPage;
		}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function SelectIt(){
        if (document.Links.Select.options[document.Links.Select.selectedIndex].value != "none"){ 
       parent.location = document.Links.Select.options[document.Links.Select.selectedIndex].value}  
}
function SelectIt1(){
        if (document.story.Select1.options[document.story.Select1.selectedIndex].value != "none"){ 
       parent.location = document.story.Select1.options[document.story.Select1.selectedIndex].value}  
}
function SelectIt2(){
        if (document.story.Select2.options[document.story.Select2.selectedIndex].value != "none"){ 
       parent.location = document.story.Select2.options[document.story.Select2.selectedIndex].value}  
}
function GoToSelected(){
        if (document.uses.Selected.options[document.uses.Selected.selectedIndex].value != "none"){ 
       parent.location = document.uses.Selected.options[document.uses.Selected.selectedIndex].value}  
}
//  create top nav template

function createInstructorPull() {
	var htmlStr = "";
	htmlStr += '<form name="">';
	htmlStr += '<select class="dropdown" name="Selected" onChange="self.location.href=this.form.Selected.options[this.form.Selected.selectedIndex].value">';
	htmlStr += '<option>Full-Time Staff  Members:</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_kengood">Ken J. Good</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_vbaker">Vaughn Baker</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_bdueck">Barry Dueck</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_mwarren">Mark Warren</option>';
	htmlStr += '</select></form></td></tr><tr>';
	htmlStr += '<td><img src="/images/spacer.gif" width="1" height="6"></td>';
	htmlStr += '</tr><tr><td><form name="">';
	htmlStr += '<select class="dropdown" name="Selected" onChange="self.location.href=this.form.Selected.options[this.form.Selected.selectedIndex].value">';
	htmlStr += '<option>Adjunct Team Members:</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_bmurphy">Bill Murphy</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_elangdon">Ernest G. Langdon</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_jwilliams">James Williams</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_jberry">Jeff Berry</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_mtrue">Marty True</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_mbrim">Mitch Brim</option>';
	htmlStr += '</select></form></td></tr><tr>';
	htmlStr += '<td><img src="/images/spacer.gif" width="1" height="6"></td>';
	htmlStr += '</tr><tr><td><form name="">';
	htmlStr += '<select class="dropdown" name="Selected" onChange="self.location.href=this.form.Selected.options[this.form.Selected.selectedIndex].value">';
	htmlStr += '<option>Certified Instructors: </option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_demarco">Anthony DeMarco</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_bmollenkopf">Brian Mollenkopf</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_cmalstrom">Carey &quot;Bud&quot; Malstrom</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_dtennis">Dan Tennis</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_dschumaker">David Schumaker</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_fborelli">Frank Borelli</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_jmurray">James R. Murray</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_jmckee">James &quot;Tiger&quot; McKee</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_jsperry">Jed Sperry</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_jcuomo">Justin Cuomo</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_respiris">Louis De Respiris</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_mbyrd">Mike Byrd</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_rbarry">Ray Barry</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_rschaeffer">Rod Schaeffer</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_sdecker">Steven Decker</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_tharm">Thomas Harm</option>';
	htmlStr += '<option value="main.pl?pgm=co_disp&func=displ&strfnbr=6&pgname=institute_bio_tburke">Todd Burke</option>';
	htmlStr += '</select></form>';
	return htmlStr;
}

function popup(winurl){
	window.open(winurl,"winpopup","status=no,scrollbars=yes,width=760,height=600")
}

function createLeftField() {
	var htmlStr = "";
	htmlStr += '<textarea rows="10" cols="40" name="story"></textarea>';
	return htmlStr;
}

function createCopyRight() {
	var htmlStr = "";
	htmlStr += '<img src="/surefire/content/templates/mar_template/version1/spacer.gif" width="8" height="1"><a href="http://earth.sandiegomedia.com/maxexp/main/co_disp/displ/pgrfnbr/261/sesent/00" class=prlinks>SureFire Guarantee</a>	<span class="div3">|</span> <a href="http://earth.sandiegomedia.com/maxexp/main/co_disp/displ/pgrfnbr/262/sesent/00" class=prlinks>Privacy Policy</a> <span class="div3">|</span> <a href="http://earth.sandiegomedia.com/maxexp/main/co_disp/displ/pgrfnbr/264/sesent/00" class=prlinks>Browser Requirements</a> <span class="div3">|</span> <a href="http://earth.sandiegomedia.com/maxexp/main/co_disp/displ/pgrfnbr/257/sesent/00" class=prlinks>Shipping Terms & Conditions</a> <span class="div3">|</span> <a href="http://earth.sandiegomedia.com/maxexp/main/co_disp/displ/pgrfnbr/260/sesent/00" class=prlinks>Returns & Refunds</a> <span class="div3">|</span> <a href="http://earth.sandiegomedia.com/maxexp/main/co_disp/displ/pgrfnbr/20/sesent/00" class=prlinks>Contact Us</a>';
	htmlStr += '<br>';
	htmlStr += '<span class=purpletext><img src="/surefire/content/templates/mar_template/version1/spacer.gif" width="8" height="1">&copy; <a href="http://earth.sandiegomedia.com/maxexp/main/co_disp/displ/pgrfnbr/263/sesent/00" class=purpletext><u>Copyright</u></a> SureFire, LLC. 2001 <a href="/sitemap.html" style="text-decoration: none;">-</a> 2004</span>';
	return htmlStr;
}

function openShippingInfo(){
	shipping = window.open("/maxexp/main.pl?pgm=co_disp&func=displ&sesent=0,0&strfnbr=6&strfnbr=6&pgname=shipping_terms","shipping","status=no,width=760,height=460");
}

function createShippingInfo() {
	var htmlStr = "";
	htmlStr += '<div align="center"><a href="javascript:popup(\'/maxexp/main.pl?pgm=co_disp&func=displ&sesent=0,0&strfnbr=6&strfnbr=6&pgname=shipping_terms\')" class="prlinks">Shipping Terms & Conditions</a> <span class="div3">|</span> <a href="javascript:popup(\'/maxexp/main.pl?pgm=co_disp&func=displ&sesent=0,0&strfnbr=6&strfnbr=6&pgname=misc\')" class="prlinks">Online Orders</a> <span class="div3">|</span> <a href="javascript:popup(\'/maxexp/main.pl?pgm=co_disp&func=displ&sesent=0,0&strfnbr=6&strfnbr=6&pgname=refunds_returns\')" class="prlinks">Returns & Refunds</a></div>';
	return htmlStr;
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function SelectIt2(){
        if (document.Links.Select2.options[document.Links.Select2.selectedIndex].value != "none"){ 
        document.location = document.Links.Select2.options[document.Links.Select2.selectedIndex].value}   
}
function SelectIt3(){
        if (document.Links.Select3.options[document.Links.Select3.selectedIndex].value != "none"){ 
        document.location = document.Links.Select3.options[document.Links.Select3.selectedIndex].value}   
}
function SelectIt1(){
        if (document.Links.Select1.options[document.Links.Select1.selectedIndex].value != "none"){ 
        document.location = document.Links.Select1.options[document.Links.Select1.selectedIndex].value}   
}
function tSelectIt2(){
        if (document.teachers.Select2.options[document.teachers.Select2.selectedIndex].value != "none"){ 
        document.location = document.teachers.Select2.options[document.teachers.Select2.selectedIndex].value}   
}
function tSelectIt3(){
        if (document.teachers.Select3.options[document.teachers.Select3.selectedIndex].value != "none"){ 
        document.location = document.teachers.Select3.options[document.teachers.Select3.selectedIndex].value}   
}
function tSelectIt1(){
        if (document.teachers.Select1.options[document.teachers.Select1.selectedIndex].value != "none"){ 
        document.location = document.teachers.Select1.options[document.teachers.Select1.selectedIndex].value}   
}
function tSelectIt4(){
        if (document.teachers.Select4.options[document.teachers.Select4.selectedIndex].value != "none"){ 
        document.location = document.teachers.Select4.options[document.teachers.Select4.selectedIndex].value}   
}
function createCountryMenu() {
	var htmlStr = "";
htmlStr += '	<select name="CName" class="prdesc1" onChange="SelectCountry()">';
htmlStr += '			<OPTION selected>Select A Country Here</OPTION>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=ARGENTINA">ARGENTINA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=AUSTRALIA">AUSTRALIA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=AUSTRIA">AUSTRIA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=BELGIUM">BELGIUM</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=BRAZIL">BRAZIL</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=BRUNEI">BRUNEI</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=CANADA">CANADA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=COSTA_RICA">COSTA RICA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=CYPRUS">CYPRUS</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=CZECH_REPUBLIC">CZECH REPUBLIC</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=DENMARK">DENMARK</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=ENGLAND">ENGLAND</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=FINLAND">FINLAND</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=FRANCE">FRANCE</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=GERMANY">GERMANY</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=GIBRALTAR">GIBRALTAR</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=GREECE">GREECE</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=GUAM">GUAM</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=HONG_KONG">HONG KONG</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=HUNGARY">HUNGARY</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=INDONESIA">INDONESIA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=IRELAND">IRELAND</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=ISRAEL">ISRAEL</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=ITALY">ITALY</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=JAPAN">JAPAN</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=KOREA">KOREA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=LATVIA">LATVIA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=LEBANON">LEBANON</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=LUXEMBOURG">LUXEMBOURG</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=NETHERLANDS">NETHERLANDS</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=NEW_ZEALAND">NEW ZEALAND</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=NORWAY">NORWAY</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=OMAN">OMAN</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=PHILIPPINES">PHILIPPINES</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=POLAND">POLAND</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=PORTUGAL">PORTUGAL</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=RUSSIA">RUSSIA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=SAUDI_ARABIA">SAUDI ARABIA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=SLOVENIA">SLOVENIA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=SPAIN">SPAIN</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=SWEDEN">SWEDEN</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=SWITZERLAND">SWITZERLAND</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=THAILAND">THAILAND</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=TUNISIA">TUNISIA</option>';
htmlStr += '			<option value="/maxexp/main.pl?pgm=co_disp&func=displ&strfnbr=6&sesent=0,0&pgname=VENEZUELA">VENEZUELA</option>';
htmlStr += '</select>';
return htmlStr;
}