function myyear(){
	var now = new Date;
	var year = now.getFullYear();
	document.write("©" + year + "  Rooney Associates");
}

function flashfix1(){
	flash="<embed src='logo.swf' width='148' height='148' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' 				type='application/x-shockwave-flash' wmode='transparent' menu='false'></embed>";
	document.write(flash);
}

function flashfix2(){
	flash="<embed src='flashfile.swf' width='319' height='274' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent' menu='false'></embed>";	
	document.write(flash);
}

function flashfixintro(){
	flash="<embed src='bounce.swf' width='570' height='400' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' menu='false' wmode='transparent'></embed>";	
	document.write(flash);
}

function doDate(){
var strDay;
if ((now.getDate() == 1) || (now.getDate() != 11) && (now.getDate() % 10 == 1)) 		// Correction for 11th and 1st/21st/31st
	strDay = "st ";
else if ((now.getDate() == 2) || (now.getDate() != 12) && (now.getDate() % 10 == 2)) 	// Correction for 12th and 2nd/22nd/32nd
	strDay = "nd ";
else if ((now.getDate() == 3) || (now.getDate() != 13) && (now.getDate() % 10 == 3)) 	// Correction for 13th and 3rd/23rd/33rd
	strDay = "rd ";
else
	strDay = "th ";
document.write(
dayName[now.getDay()]
+
", "
+
now.getDate()
+
strDay
+
"of "
+
monName[now.getMonth()]
+
", "
+
now.getFullYear()
)	
}

function checkForm(theform){
cht = 0;
cht2 = 0;
var msg = "Please fill out all the fields before submitting.";

for (x = 0; x < theform.elements.length; x++){
   var el = theform.elements[x];
   if (el.id == 'need') {
         if (el.value == ''){
            //alert(msg);
            el.className='formError';
            cht = 1;
            }else{
			el.className='formOK'; 
			}
       }

} 
if (cht == 1){
alert(msg);
return false;
}else{
return true;	   
}               

}
/*
function makenava(){
	nava = "";

var link_names = new Array()
link_names[0] = "option1"
link_names[1] = "option2"
link_names[2] = "option3"
link_names[3] = "option4"
link_names[4] = "option5"
link_names[5] = "option6"

var link_urls = new Array()
link_urls[0] = "http://localhost/asp/rooney/Website/site/"
link_urls[1] = "http://localhost/asp/rooney/Website/site/"
link_urls[2] = "http://localhost/asp/rooney/Website/site/"
link_urls[3] = "http://localhost/asp/rooney/Website/site/"
link_urls[4] = "http://localhost/asp/rooney/Website/site/"
link_urls[5] = "http://localhost/asp/rooney/Website/site/"

for(x in link_names){
nava +=  '<tr>
              <td align=\"right\" background=\"images/bluebutton.gif\" class=\"nav\">"+link_names[x]+"<img src=\"images/x.gif\" alt=\"X\" width=\"10\" height=\"23\" align=\"absmiddle\"></td>
            </tr>'
}
alert(nava);
}
*/
