function ConfirmDeleteVideo2(ForSaleID) {
  if (confirm("Are you sure you want to delete this video?")) {
    document.location = "propertyForSale-modifyVideo-delete.asp?ForSaleID="+ ForSaleID;;
  }
}

function ConfirmDeleteVideo(UnitID) {
  if (confirm("Are you sure you want to delete this video?")) {
    document.location = "unit-modifyVideo-delete.asp?UnitID="+ UnitID;;
  }
}


function ConfirmDeleteSaleProperty(ForSaleID) {
  if (confirm("Are you sure you want to delete this property?")) {
    document.location = "propertyForSale-delete.asp?ForSaleID="+ ForSaleID;;
  }
}

function ConfirmDeleteSalePhoto(ForSalePhotoID, ForSaleID) {
  if (confirm("Are you sure you want to delete this photo?")) {
    document.location = "propertyForSale-modifyphoto-delete.asp?ForSalePhotoID="+ForSalePhotoID+"&ForSaleID="+ForSaleID;
  }
}

function ConfirmDeleteJob(JobID) {
  if (confirm("Are you sure you want to delete employment opportunity?")) {
    document.location = "employment-delete.asp?JobID="+ JobID;;
  }
}


function ConfirmDeleteMessage(ContactID) {
  if (confirm("Are you sure you want to delete this message?")) {
    document.location = "contactform-delete.asp?ContactID="+ ContactID;;
  }
}

function ConfirmDeleteProperty(PropertyID) {
  if (confirm("Are you sure you want to delete this property?")) {
    document.location = "property-delete.asp?PropertyID="+ PropertyID;;
  }
}

function ConfirmDeleteUnit(UnitID) {
  if (confirm("Are you sure you want to delete this unit?")) {
    document.location = "unit-delete.asp?UnitID="+ UnitID;
  }
}

function ConfirmDeletePhoto(PhotoID, UnitID) {
  if (confirm("Are you sure you want to delete this photo?")) {
    document.location = "unit-modifyphoto-delete.asp?PhotoID="+ PhotoID +"&UnitID="+UnitID
  }
}


function DisplayPicture(pic) {
	var theq = "/includes/viewpicture.asp?pic=" + pic;
	window.open(theq,"sp","width=100,height=100,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,menubar=no");
}

function DisplayVideo(VideoFileName) {
	var theq = "/includes/viewVideo.asp?VideoFileName=" + VideoFileName;
	window.open(theq,"sp","width=100,height=100,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,menubar=no");
}


function DisplayPictureForSale(pic) {
	var theq = "/includes/viewpictureForSale.asp?pic=" + pic;
	window.open(theq,"sp","width=100,height=100,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,menubar=no");
}



function SubmitSearch() {
    document.form1.submit();
}




// SHOW/HIDE TEAM MEMBERS

function showPic (whichpic) {
  document.getElementById('placeholder').src = "graphics/team_" + whichpic + ".jpg";
  
  document.getElementById(whichpic).style.display = 'block';
  
  if(whichpic == "tracy"){
  document.getElementById("ryan").style.display = 'none';
  document.getElementById("tracey").style.display = 'none';
  document.getElementById("tanya").style.display = 'none';
  document.getElementById("randy").style.display = 'none';
  }
  
  if(whichpic == "ryan"){
  document.getElementById("tracy").style.display = 'none';
  document.getElementById("tracey").style.display = 'none';
  document.getElementById("tanya").style.display = 'none';
  document.getElementById("randy").style.display = 'none';
  }
  
  if(whichpic == "tracey"){
  document.getElementById("ryan").style.display = 'none';
  document.getElementById("tracy").style.display = 'none';
  document.getElementById("tanya").style.display = 'none';
  document.getElementById("randy").style.display = 'none';
  }
  
  
  if(whichpic == "tanya"){
  document.getElementById("ryan").style.display = 'none';
  document.getElementById("tracy").style.display = 'none';
  document.getElementById("tracey").style.display = 'none';
  document.getElementById("randy").style.display = 'none';
  }
  
   if(whichpic == "randy"){
  document.getElementById("ryan").style.display = 'none';
  document.getElementById("tracy").style.display = 'none';
  document.getElementById("tracey").style.display = 'none';
  document.getElementById("tanya").style.display = 'none';
  }
  
  
}





function showtable(tableNumber) {

          document.getElementById("table" + tableNumber).style.display = 'block';
}

function hidetable(tableNumber) {

		  document.getElementById("table" + tableNumber).style.display = 'none';
}




function skillLevel(){
window.open('info-skillLevel.asp','map','width=520,height=395,top=200,left=200, resize=no,scrollbars=no');
}

function ShowFlash(filename,height,width)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+filename+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="salign" value="l">');
	document.write('<embed src="'+filename+'" quality="high" salign="l" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
	document.write('</object>');
}


function Reservation()
{
	
	Stamp = new Date();




	var theq = "http://www.inntopia.travel/aspnet/2.0/start07.aspx?salesid=1137459"
	window.open(theq,"spr"+Stamp.getSeconds(),"width=815,height=600,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");
	


//alert('Our online reservation system is currently being developed.\nTo make a reservation, please call 1-800-337-3257.');	
	
}

function USDollar(){
window.open('usdollar.asp','usdollar','width=524,height=228,top=200,left=200, resize=no,scrollbars=no');
}	