// JavaScript Document

<!-- hide script from old browsers

var counter=0;
	var quotes= new Array();
	quotes[0]="images/freeevent02.jpg";
	quotes[1]="images/freeevent01.jpg";
		
	function animate()
	{
	if (counter==quotes.length)
	   counter=0
	document.quote.src=quotes[counter]
	counter++
	setTimeout("animate()",1000);
	};


function openArtWind(url,windowname,w,h)
{
SpecWindow = window.open(url,windowname,"resizable=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width="+w+",height="+h+",left=490,top=0,screenX=490,screenY=0")

SpecWindow.focus()

};


function popUp(url,windowname,w,h)
{
popWindow = window.open(url,windowname,"resizable=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width="+w+",height="+h+",left=0,top=0,screenX=0,screenY=0")

popWindow.focus()

};


function validate()

       {
		  		  
		  var msg = "must be filled";
		  var msg1= "First Name ";
		  var msg2= "Day of your DOB ";
		  var msg3= "Address ";
  		  var msg4= "Suburb ";
		  var msg5= "Post Code ";
		  var msg6= "Contact number ";
		  var msg7= "Email ";
		  var msg8= "How I Found Out About Spectrum ";
		  var msg9= "Which workshop you're interested in ";
		  var msg10= "Surname Name ";
		  var msg11= "Month of your DOB ";
		  var msg12= "Year of your DOB ";
		  		  		  
		  if (document.specform.firstname.value=="")
		  	  alert(msg1+msg);

		  if (document.specform.surname.value=="")
		  	  alert(msg10+msg);

		  if (document.specform.DOBday.value=="")
		  	  alert(msg2+msg);
		 
		 if (document.specform.DOBmonth.value=="")
			  	  alert(msg11+msg);

	     if (document.specform.DOByear.value=="")
			  	  alert(msg12+msg);

 		  if (document.specform.address.value=="")
		  	  alert(msg3+msg);

 		  if (document.specform.suburb.value=="")
		  	  alert(msg4+msg);

 		  if (document.specform.postcode.value=="")
		  	  alert(msg5+msg);
		 
 		  if (document.specform.phone.value=="")
		  	  alert(msg6+msg);

 		  if (document.specform.replyemail.value=="")
		  	  alert(msg7+msg);

 		  if (document.specform.HowIFoundOutAboutSpectrum.value=="")
		  	  alert(msg8+msg);

 		  if (document.specform.WorkshopInterest.value=="")
		  	  alert(msg9+msg);

	 
		 
		  if (document.specform.firstname.value&&document.specform.surname.value&&document.specform.DOBday.value&&document.specform.DOBmonth.value&&document.specform.DOByear.value&&document.specform.address.value&&document.specform.suburb.value&&document.specform.postcode.value&&document.specform.phone.value&&document.specform.replyemail.value&&document.specform.HowIFoundOutAboutSpectrum.value&&document.specform.WorkshopInterest.value!="")
 document.specform.action="http://pub16.bravenet.com/emailfwd/senddata.php";
		}



function roll(img_name1, img_src1, img_name2, img_src2)
   {
   document[img_name1].src = img_src1;
   document[img_name2].src = img_src2;
   };

function win_status(msg)
    {
    window.status= msg ;
    return;
    }

function no_status()
    {
    window.status="";
    return true;
    }

// end hiding script from old browsers -->
