﻿// JScript File

function ShowUnits()
{
    $("#dvUnits").toggle("slow");
}

function printwindow()
{
    $("OuterContent").html("");
    window.print();
}

function apptpromt(sID){
 
	//agewindow=dhtmlmodal.open('apptRequestbox', 'div', 'apptRequest', '', 'width=560px,height=450px,center=1,resize=0,scrolling=1')
	var agewindow=dhtmlmodal.open("apptRequestbox", "iframe", "/usercontrols/iframe_appt_req.aspx?siteid="+sID, "", "width=560px,height=520px,center=1,resize=0,scrolling=0", "recal")
	
}

function floorPlansPrompt(sID, tID){
 
	//agewindow=dhtmlmodal.open('apptRequestbox', 'div', 'apptRequest', '', 'width=560px,height=450px,center=1,resize=0,scrolling=1')
	var agewindow=dhtmlmodal.open("apptRequestbox", "iframe", "/usercontrols/iframe_TypefloorPlans.aspx?site="+sID+"&type="+tID, "", "width=600px,height=540px,center=1,resize=0,scrolling=0", "recal")
	
}

function calendarEventPrompt(eID){
 
	//agewindow=dhtmlmodal.open('apptRequestbox', 'div', 'apptRequest', '', 'width=560px,height=450px,center=1,resize=0,scrolling=1')
	var agewindow=dhtmlmodal.open("apptRequestbox", "iframe", "/usercontrols/iframe_event.aspx?event="+eID, "", "width=400px,height=300px,center=1,resize=0,scrolling=0", "recal")
	
}
function removeapptbox(sID, uID)
{
  var agewindow=dhtmlmodal.open("apptRequestbox", "iframe", "/usercontrols/iframe_appt_req.aspx?siteid="+sID+"&unit="+uID, "", "width=560px,height=540px,center=1,resize=0,scrolling=0", "recal")
	
}
function floorplanpromt2( uID){
	
	parent.floorplanpromt3(uID);
}
function floorplanpromt3(uID){
	//agewindow=dhtmlmodal.open('apptRequestbox', 'div', 'apptRequest', '', 'width=560px,height=450px,center=1,resize=0,scrolling=1')
	var agewindow=dhtmlmodal.open("floorPlanbox", "iframe", "/usercontrols/iframe_floorPlan.aspx?unit="+uID, "", "width=600px,height=540px,center=1,resize=0,scrolling=0", "recal")
	
}

function apptpromt2(sID, uID){
	
	parent.removeapptbox(sID, uID);
}

function apptpromtunit(sID, uID)
{
  var agewindow=dhtmlmodal.open("apptRequestbox", "iframe", "/usercontrols/iframe_appt_req.aspx?site="+sID+"&unit="+uID, "", "width=560px,height=540px,center=1,resize=0,scrolling=0", "recal")
	
}

function floorplanpromt(uID){
	//agewindow=dhtmlmodal.open('apptRequestbox', 'div', 'apptRequest', '', 'width=560px,height=450px,center=1,resize=0,scrolling=1')
	var agewindow=dhtmlmodal.open("floorPlanbox", "iframe", "usercontrols/iframe_floorPlan.aspx?unit="+uID, "", "width=560px,height=540px,center=1,resize=0,scrolling=0", "recal")
	
}

function maintpromt(sID){
	//agewindow=dhtmlmodal.open('apptRequestbox', 'div', 'apptRequest', '', 'width=560px,height=450px,center=1,resize=0,scrolling=1')
	var agewindow=dhtmlmodal.open("apptRequestbox", "iframe", "/usercontrols/iframe_maint_req.aspx?siteid="+sID, "", "width=560px,height=480px,center=1,resize=0,scrolling=0", "recal")
	
}

function mgrpromt(sID){
	//agewindow=dhtmlmodal.open('apptRequestbox', 'div', 'apptRequest', '', 'width=560px,height=450px,center=1,resize=0,scrolling=1')
	var agewindow=dhtmlmodal.open("apptRequestbox", "iframe", "/usercontrols/iframe_contact_mngr.aspx?siteid="+sID, "", "width=560px,height=480px,center=1,resize=0,scrolling=0", "recal")
	
}

function concpromt(sID){
	//agewindow=dhtmlmodal.open('apptRequestbox', 'div', 'apptRequest', '', 'width=560px,height=450px,center=1,resize=0,scrolling=1')
	var agewindow=dhtmlmodal.open("apptRequestbox", "iframe", "/usercontrols/iframe_contact_conc.aspx?siteid="+sID, "", "width=560px,height=480px,center=1,resize=0,scrolling=0", "recal")
	
}

function FontDec()
{
     $('body').each(
	        function( intIndex ){
	            var fs = $(this).css("font-size");
	            fs = parseInt(fs.replace("px",""));
	            fs = fs-1;
	            if(fs > 7)
	            {
	                $(this).css("font-size",fs+"px");  
	            }
	            
        });
}

function FontInc()
{
    $('body').each(
	        function( intIndex ){
	            var fs = $(this).css("font-size");
	            fs = parseInt(fs.replace("px",""));
	            fs = fs+1;
	            if(fs < 16)
	            {
	                $(this).css("font-size",fs+"px");  
	            }
	            
        });
        
      
}

function ClearCareerFields()
{
    if($("#ctl00_ContentPlaceHolder1_txtName").val() == "name")
        $("#ctl00_ContentPlaceHolder1_txtName").val("");
    if($("#ctl00_ContentPlaceHolder1_txtEmail").val() == "email")
        $("#ctl00_ContentPlaceHolder1_txtEmail").val("");
}

function selectli(id)
{
    $("#ulnav li").removeClass("hover");
    $("#"+id).addClass("hover");
}

function unselectli()
{
    $("#ulnav li").removeClass("hover");
   
}
