/* 
   File: site_library.js
   Author: Charlene Burg 
   Date: 03 December 2005
   
   Comments:
   
   This file contains general use functions to be used on multiple pages.
   It will be included to gain access to these functions to reduce coding
   on each page
   
*/
var arrMonthNames = new Array ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var arrDaysInMonth = new Array (31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

/* 
   Function: dispToday
   Arguments: NONE
   Returns: NONE
   
   Purpose: print the current long date with the words Today is
*/
function dispToday() 
{
	var Today=new Date();
	var ThisDay=Today.getDate();
	var ThisMonth=Today.getMonth()+1;
	var ThisYear=Today.getFullYear();
	var MonthTxt= new Array ("", "January", "February", "March", "April", "May",
		"June", "July", "August", "September", "October", "November", "December");

	document.write("Today is "+MonthTxt[ThisMonth]+" "+ThisDay+", "+ThisYear+"<br />");
}

function funDaysOfTheMonth(form, idx)
{
    funPopDays(form.day, arrDaysInMonth[idx]);
}

function funPopDays(field, num)
{
	field.length = num;
	
	for(var i=0; i<num; i++)
	{
	    field.options[i].text = i+1;
	}
}

            var popup="Thanks for your interest, however all content is copyrighted. \nŠ1983 - 2009 Popular Party DJ's, LLC."; 
            function noway(go) { 
                if (document.all) { 
                    if (event.button == 2) { 
                        alert(popup); return false; 
                    } 
                } if (document.layers) { 
                    if (go.which == 3) { 
                        alert(popup); 
                        return false; 
                    } 
                } 
            } 

            if (document.layers) { 
                document.captureEvents(Event.MOUSEDOWN); 
            } 

            document.onmousedown=noway; 
