//IMAGE SWAP CODE
	<!-- Begin
	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_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_findObj(n, d) { //v3.0
	  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); 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];}
	}
	// End -->
//IMAGE SWAP CODE

//MOUSE OVER DESCRIPTION SCRIPT
		divIdArray = new Array("bg","bm","bp","bs","bt","bfs","foton");
		function CloseAllDivs(){
			for(var i = 0; i < divIdArray.length; i++){
				document.getElementById(divIdArray[i]).style.display ="none";
			}
		}
		
		function changeNavandDiv(name){
			CloseAllDivs();
			document.getElementById(name).style.display ="block";
		}
	//MOUSE OVER DESCRIPTION SCRIPT
	
//POPUP WINDOW
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height, scroll, resize)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroll+',resizable='+resize+',copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
//POPUP WINDOW

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var theImages = new Array() // do not change this
theImages[0] = '../images/banners/01.jpg'
theImages[1] = '../images/banners/02.jpg'
theImages[2] = '../images/banners/03.jpg'
theImages[3] = '../images/banners/04.jpg'
theImages[4] = '../images/banners/05.jpg'
theImages[5] = '../images/banners/06.jpg'
theImages[6] = '../images/banners/07.jpg'
theImages[7] = '../images/banners/08.jpg'
theImages[8] = '../images/banners/09.jpg'
theImages[9] = '../images/banners/10.jpg'
theImages[10] = '../images/banners/11.jpg'
// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var theFlash = new Array() // do not change this
theFlash[0] = '../../flash/banner001.swf'
theFlash[1] = '../../flash/banner002.swf'
theFlash[2] = '../../flash/banner003.swf'
theFlash[3] = '../../flash/banner004.swf'
theFlash[4] = '../../flash/banner005.swf'
theFlash[5] = '../../flash/banner006.swf'
// do not edit anything below this line

var j = 0
var p = theFlash.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theFlash[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showFlash(){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="logoflash" width="600" height="115"><param name="movie" value="'+theFlash[whichImage]+'"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF"><embed name="logoflash" src="'+theFlash[whichImage]+'" quality="high" bgcolor="#FFFFFF" width="600" height="115" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>');
}

//  End -->
					
										
// DIV HIDE AND SHOW

var state = 'none';

function showhide(layer_ref)
	{
		if (state == 'block')
			{state = 'none';}
		else
			{state = 'block';}

		if (document.all) { //IS IE 4 or 5 (or 6 beta)
		eval( "document.all." + layer_ref + ".style.display = state");
	}
	
	if (document.layers)
		{ //IS NETSCAPE 4 or below
			document.layers[layer_ref].display = state;
		}

	if (document.getElementById &&!document.all)
		{hza = document.getElementById(layer_ref);
			hza.style.display = state;
		}
	}
// DIV END -->




//alert ("went in to validation");
var validate;

function validate(obj)
{
	//define objects to validate
	var allElements = obj.elements;
	var coCount = 0;
	var errors = "";

	for( i=0 ; i<allElements.length; i++)
	{
	
		//CHECK username NOT EMPTY
		if (allElements[i].name == "username")
		{
			var ocomments = allElements[i].value;
			if ( ocomments.length <= 0 ) {errors += "-> Your username is a mandatory field, please enter\n";}	
		}
		
		//CHECK password NOT EMPTY
		if (allElements[i].name == "password")
		{
			var ocomments = allElements[i].value;
			if ( ocomments.length <= 0 ) {errors += "-> Your password is a mandatory field, please enter\n";}	
		}
		
		//CHECK password NOT EMPTY
		if (allElements[i].name == "password1")
		{
			var ocomments = allElements[i].value;
			if ( ocomments.length <= 0 ) {errors += "-> Your confirm password is a mandatory field, please enter\n";}	
		}
		
		//CHECK FIRSTNAME NOT EMPTY
		if (allElements[i].name == "fullname")
		{
			var ocomments = allElements[i].value;
			if ( ocomments.length <= 0 ) {errors += "-> Your full name is a mandatory field, please enter your first / full name\n";}	
		}
		
		//CHECK LASTNAME NOT EMPTY
		if (allElements[i].name == "lastname")
		{
			var ocomments = allElements[i].value;
			if ( ocomments.length <= 0 ) {errors += "-> Your Last name is a mandatory field, please enter\n";}	
		}		
		
		//CHECK EMAIL ADDRESS NOT EMPTY AND VALID
		if (allElements[i].type == "text" && allElements[i].name == "email")
		{
			var oEmail = allElements[i].value;
			var chkDot = true;
			var result = false;
			var ndxAt = ndxDot =  0;
			var ndxAt = ndxDot =  0;

			if (oEmail.length <= 0 )
			{
				errors += "-> Your Email is a mandatory field, please enter your email\n";
			}
			else //not empty start email address validation
			{
				ndxAt  = oEmail.indexOf("@");
				ndxDot = oEmail.indexOf(".");
				ndxDot2 = oEmail.lastIndexOf(".");
									
				var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\]]/;
				
			        if (oEmail.match(illegalChars)) { 
			                errors += "Your email contains illegal characters\n";
			        }
				else if ( (ndxDot < 0) ) //check for a '.' sign
				{
					errors += "->Your email lacks '.'\n\tThe format is 'you@domain.com'";
				}
				else if ( (ndxAt < 0) ) //check for an '@' sign
				{
					errors += "->Your email lacks an '@'\n\tThe format is 'you@domain.com'";
				}
				else if (ndxDot2 - 3 <= ndxAt)
				{
					errors += "->You may be missing Your email's domain name\n\tThe format is 'you@domain.com'";
				}
			}	
		}

		//CHECK CONTACT DIAL CODE NUMBER NOT EMPTY
		else if (allElements[i].type=="text" && allElements[i].name == "cell")
		{
			var oFullName = allElements[i].value;
			if ( oFullName.length <= 0 ){errors += "-> Cellphone number is a mandatory field, please enter code\n";}
		}
		
		//CHECK CONTACT DIAL CODE NUMBER NOT EMPTY
		else if (allElements[i].type=="text" && allElements[i].name == "contact-area1")
		{
			var oFullName = allElements[i].value;
			if ( oFullName.length <= 0 ){errors += "-> International code is a mandatory field, please enter code\n";}
		}
		
		//CHECK CONTACT DIAL CODE NUMBER NOT EMPTY
		else if (allElements[i].type=="text" && allElements[i].name == "contact-area2")
		{
			var oFullName = allElements[i].value;
			if ( oFullName.length <= 0 ){errors += "-> Local dialing code is a mandatory field, please enter code\n";}			
		}		
		
		//CHECK CONTACT NUMBER1 NOT EMPTY
		else if (allElements[i].type=="text" && allElements[i].name == "contact-number")
		{
			var oFullName = allElements[i].value;
			if ( oFullName.length <= 0 ){errors += "-> Contact number is a mandatory field, please enter number\n";}			
		}
		
		//CHECK COMMMENTS NOT EMPTY
		else if (allElements[i].type=="textarea" && allElements[i].name == "comments")
		{
			var oFullName = allElements[i].value;
			if ( oFullName.length <= 0 ){errors += "-> Comments is a mandatory field, please enter your comment\n";}			
		}
		
		//CHECK EMAILCODE NOT EMPTY
		if (allElements[i].name == "code")
		{
			var ocomments = allElements[i].value;
			if ( ocomments.length <= 0 ) {errors += "-> Please enter the image verification code\n";}	
		}

		
	}
	if (coCount == 2) 
	{
			
		errors += "-> Please fill in the neccesary country and area code in the Contact Number\n";
	}
	
	if(errors)
	{
		alert("The following errors were found\n" + errors);
		errors = "";
		returnVal = false;
	}
	else
	{
		returnVal = true;
	}
	return returnVal; 
}
