<!--


		function validate()
		{
		
		if(document.frm.drptitle.value =="")
		{
		alert("Select Title");
		return false;
		}
		
		if(document.frm.txtfname.value=="")
		{
			alert("Enter First Name");
			frm.txtfname.select();
			return false;
		}
		if(document.frm.txtlname.value=="")
		{
			alert("Enter Last Name");
			frm.txtlname.select();
			return false;
		}
		if(document.frm.txtadd1.value=="")
		{
			alert("Enter your Address");
			frm.txtadd1.select();
			return false;
		}
		if(document.frm.txttown.value=="")
		{
			alert("Enter your Town");
			frm.txttown.select();
			return false;
		}
		if(document.frm.txtcounty.value=="")
		{
			alert("Enter your Country");
			frm.txtcounty.select();
			return false;
		}
		if(document.frm.txtpcode.value=="")
		{
			alert("Enter PostCode");
			frm.txtpcode.select();
			return false;
		}
		if(!validateEmail(document.frm.txtemail.value))
		{
		alert("Email address seems incorrect or blank check @ and .s"); 
		document.frm.txtemail.focus();
		return false;
		}
		
	}



		function validate1()
		{
		
		var x = document.frm.drptitle.selectedIndex;
	
		if(document.frm.drptitle[x].value =="")
		{
		alert("Select Title");
		return false;
		}
		
		if(document.frm.txtfname.value=="")
		{
			alert("Enter First Name");
			frm.txtfname.select();
			return false;
		}
		if(document.frm.txtlname.value=="")
		{
			alert("Enter Last Name");
			frm.txtlname.select();
			return false;
		}
		if(document.frm.txtadd1.value=="")
		{
			alert("Enter your Address");
			frm.txtadd1.select();
			return false;
		}
		if(document.frm.txttown.value=="")
		{
			alert("Enter your Town");
			frm.txttown.select();
			return false;
		}
		if(document.frm.txtcounty.value=="")
		{
			alert("Enter your Country");
			frm.txtcounty.select();
			return false;
		}
		if(document.frm.txtpcode.value=="")
		{
			alert("Enter PostCode");
			frm.txtpcode.select();
			return false;
		}
		if(!validateEmail(document.frm.txtemail.value))
		{
		alert("Email address seems incorrect or blank check @ and .s"); 
		document.frm.txtemail.focus();
		return false;
		}
		
	}




function validation()
{
	
	var y = document.frm.drptitle.selectedIndex; 
	  
	if(document.frm.drptitle[y].value =="")
		{
		alert("Select Title");
		return false;
		}  
	  
	if(document.frm.txtfname.value=="")
	{
		alert("Enter First Name");
		frm.txtfname.select();
		return false;
	}
	if(document.frm.txtlname.value=="")
	{
		alert("Enter Last Name");
		frm.txtlname.select();
		return false;
	}
	if(document.frm.txtphone1.value=="")
	{
		alert("Enter Phone");
		frm.txtphone1.select();
		return false;
	}
	
	if(!validateEmail(document.frm.txtemail.value))
	{
		alert("Email address seems incorrect or blank check @ and .s"); 
		document.frm.txtemail.focus();
		return false;
	}
	
	if ( !checkRadioArray(frm.time1) ) 
	 {
	 	alert("Please select your best time");
		
		return false;
	}
		
}

function contact_validate()
{
	if(document.frm.name.value=="")
	{
		alert("Enter Name");
		frm.name.select();
		return false;
	}
	if(!validateEmail(document.frm.email.value))
	{
		alert("Email address seems incorrect check @ and .s"); 
		document.frm.email.focus();
		return false;
	}
	if(document.frm.comment.value=="")
	{
		alert("Enter your comment");
		frm.comment.select();
		return false;
	}
}

function checkRadioArray(radioButtons)
{
	for (var i=0; i < radioButtons.length; i++) 
	{
	  if (radioButtons[i].checked) 
	  {
	   return true;
	  }
	}
	 return false;
}

function validateEmail(email)
{
	if (email == "")
	{
		return false;
	}
	badStuff = ";:/,' \"\\";
	for (i=0; i<badStuff.length; i++)
		{
		badCheck = badStuff.charAt(i)
			
		if (email.indexOf(badCheck,0) != -1)
		{
			return false;
		}
		}
		posOfAtSign = email.indexOf("@",1)
		if (posOfAtSign == -1)
		{
			return false;
		}
		if (email.indexOf("@",posOfAtSign+1) != -1)
		{
			return false;
		}
		posOfPeriod = email.indexOf(".", posOfAtSign)
		if (posOfPeriod == -1)
		{
			return false;
		}
		if (posOfPeriod+2 > email.length)
		{
			return false;
		}
			return true;
}




function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function calender()
{
	monthnames = new Array(
"January",
"Februrary",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"Decemeber");
var linkcount=0;
function addlink(month, day, href) 
{
	var entry = new Array(3);
	entry[0] = month;
	entry[1] = day;
	entry[2] = href;
	this[linkcount++] = entry;
}

Array.prototype.addlink = addlink;
linkdays = new Array();
monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;
todayDate=new Date();
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0) 
&& !(thisyear % 100 == 0))
||(thisyear % 400 == 0)) monthdays[1]++;
startspaces=thisdate;
while (startspaces > 7) startspaces-=7;
startspaces = thisday - startspaces + 1;
if (startspaces < 0) startspaces+=7;
document.write("<table border=0 bgcolor=#E0D9BF cellpadding='3' height='250px' width='250px'");
document.write("bordercolor=black>");
document.write("<tr><td colspan=7><font color='brown'><center><strong>" 
+ monthnames[thismonth] + " " + thisyear 
+ "</strong></center></font></td></tr>");
document.write("<tr bgcolor='white'>");
document.write("<td align=center><font color='#886136'><b>Sun</font></td>");
document.write("<td align=center><font color='#886136'><b>Mon</font></td>");
document.write("<td align=center><font color='#886136'><b>Tue</font></td>");
document.write("<td align=center><font color='#886136'><b>Wed</font></td>");
document.write("<td align=center><font color='#886136'><b>Thu</font></td>");
document.write("<td align=center><font color='#886136'><b>Frid</font></td>");
document.write("<td align=center><font color='#886136'><b>Sat</font></td>"); 
document.write("</tr>");
document.write("<tr bgcolor='white'>");
for (s=0;s<startspaces;s++) {
document.write("<td bgcolor=''> </td>");
}
count=1;
while (count <= monthdays[thismonth]) 
{
	for (b = startspaces;b<7;b++) 
	{
	linktrue=false;
	document.write("<td bgcolor='white' align='center'>");
	
for (c=0;c<linkdays.length;c++) 
{
if (linkdays[c] != null) 
   {
		if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) 
			{
				document.write("<a href=\"" + linkdays[c][2] + "\">");
				linktrue=true;
		      	}
   }
   
}
if (count==thisdate) 
{
document.write("<font color='FF0000'><strong>");
}
if (count <= monthdays[thismonth]) {
document.write(count);
}
else {
document.write("");
}

if (linktrue)
document.write("</a>");
document.write("</td>");
count++;
}
document.write("</tr>");
document.write("<tr>");
startspaces=0;
}
document.write("</table></p>");
}

//<------------Day   Month     Year    Function ---------------->

//-->