// JavaScript Document
/*------------------------------------------------------------
	Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
	Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)
	Web Site: http://txkang.com
	Script featured on Dynamic Drive (http://www.dynamicdrive.com)
	
	Please retain this copyright notice in the script.
	License is granted to user to reuse this code on 
	their own website if, and only if, 
	this entire copyright notice is included.
--------------------------------------------------------------*/

//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}



startList = function() {
if (document.all&&document.getElementById) {
navRoot1 = document.getElementById("nav_vert1");
navRoot2 = document.getElementById("nav_vert2");
navRoot3 = document.getElementById("nav_vert3");
navRoot4 = document.getElementById("nav_vert4");
navRoot5 = document.getElementById("nav_vert5");
navRoot6 = document.getElementById("nav_vert6");
for (i=0; i<navRoot1.childNodes.length; i++) {
node = navRoot1.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }


for (i=0; i<navRoot2.childNodes.length; i++) {
node = navRoot2.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }

 
for (i=0; i<navRoot3.childNodes.length; i++) {
node = navRoot3.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
  
  
for (i=0; i<navRoot4.childNodes.length; i++) {
node = navRoot4.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }

  
for (i=0; i<navRoot5.childNodes.length; i++) {
node = navRoot5.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }

for (i=0; i<navRoot6.childNodes.length; i++) {
node = navRoot6.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }

  
 }
}
window.onload=startList;

<!-- Begin

function popHelp(url) {
	var width = 350;
	var height = 300;
	helpWin = window.open(url, "helpWin", "width=" + width + ",height=" + height + ",toolbars=no,resizable=no,status=no,scrollbars=yes,scrolling=yes");
}

function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}

function popReg(url) {
	var width = 540;
	var height = 550;
	productWin = window.open(url, "productWin", "width=" + width + ",height=" + height + ",toolbar=0,scrollbars=0,scrolling=0,location=0,statusbar=0,status=0,menubar=0,resizable=0");
}

function verify() {

	re=/^[a-zA-Z\_]*$/;
	reg=/^[a-zA-Z\_ ]*$/;
	regan=/^[a-zA-Z\_ 0-9]*$/;
	var passwordmaxlength=6
	var themessage = "The following fields are required/incorrect: \n";

	if (document.form.firstname.value=="") {
		themessage = themessage + " - First Name\n";
	} else if (!re.exec(document.form.firstname.value)) {
		themessage = themessage + " -  First Name: Invalid Character Found!\n";
	}
	if (document.form.lastname.value=="") {
		themessage = themessage + " - Last Name\n";
	} else if (!re.exec(document.form.lastname.value)) {
		themessage = themessage + " - Last Name: Invalid Character Found!\n";
	}
	if (document.form.companyname.value=="") {
		themessage = themessage + " - Company Name\n";
	} else if (!reg.exec(document.form.companyname.value)) {
		themessage = themessage + " - Company name: Invalid Character Found!\n";
	}
	if (document.form.address1.value=="") {
		themessage = themessage + " - Address\n";
	} else if (!regan.exec(document.form.address1.value)) {
		themessage = themessage + " -  Address: Invalid Character Found!\n";
	}
	if (document.form.country.value=="") {
		themessage = themessage + " - Country\n";
	} else if (!re.exec(document.form.country.value)) {
		themessage = themessage + " - Country: Invalid Character Found!\n";
	}
	if (document.form.phone.value=="") {
		themessage = themessage + " - Telephone Number\n";
	}
	if (document.form.email.value=="") {
		themessage = themessage + " - Email\n";
	} else if ((document.form.email.value.indexOf('@') == -1) || (document.form.email.value.indexOf('.') == -1)) {
		themessage = themessage + " - Email: Please enter correct email address!\n";
	}
	//alert if fields are empty and cancel form submit
	if (themessage == "The following fields are required/incorrect: \n") {
		document.form.submit();
	}
	else {
		alert(themessage);
		return false;

	}
}

function verifydesign() {

	re=/^[a-zA-Z\_]*$/;
	reg=/^[a-zA-Z\_ ]*$/;
	regan=/^[a-zA-Z\_ 0-9]*$/;
	var passwordmaxlength=6
	var themessage = "The following fields are required/incorrect: \n";

	if (document.form.firstname.value=="") {
		themessage = themessage + " - First Name\n";
	} else if (!re.exec(document.form.firstname.value)) {
		themessage = themessage + " -  First Name: Invalid Character Found!\n";
	}
	if (document.form.lastname.value=="") {
		themessage = themessage + " -  Last Name\n";
	} else if (!re.exec(document.form.lastname.value)) {
		themessage = themessage + " -  Last Name: Invalid Character Found!\n";
	}
	if (document.form.company.value=="") {
		themessage = themessage + " -  Company Name\n";
	} else if (!reg.exec(document.form.company.value)) {
		themessage = themessage + " -  Compnay: Invalid Character Found!\n";
	}
	if (document.form.address1.value=="") {
		themessage = themessage + " -  Address\n";
	} else if (!regan.exec(document.form.address1.value)) {
		themessage = themessage + " -  Address: Invalid Character Found!\n";
	}
	if (document.form.city.value=="") {
		themessage = themessage + " -  City\n";
	} else if (!re.exec(document.form.city.value)) {
		themessage = themessage + " -  City: Invalid Character Found!\n";
	}
	if (document.form.postcode.value=="") {
		themessage = themessage + " -  Postal Code\n";
	}
	if (document.form.country.value=="") {
		themessage = themessage + " -  Country\n";
	} else if (!re.exec(document.form.country.value)) {
		themessage = themessage + " -  Country: Invalid Character Found!\n";
	}
	if (document.form.phone.value=="") {
		themessage = themessage + " -  Telephone Number\n";
	}
	if (document.form.email.value=="") {
		themessage = themessage + " -  Email\n";
	} else if ((document.form.email.value.indexOf('@') == -1) || (document.form.email.value.indexOf('.') == -1)) {
		themessage = themessage + " -  Email: Please enter correct email address!\n";
	}

	//alert if fields are empty and cancel form submit
	if (themessage == "The following fields are required/incorrect: \n") {
		document.form.submit();
	}
	else {
		alert(themessage);
		return false;

	}
}

function verifycv() {

	re=/^[a-zA-Z\_]*$/; //allow chars
	reg=/^[a-zA-Z\_ ]*$/; //allow chars spaces
	regan=/^[a-zA-Z\_ 0-9]*$/; // allow number and chars and spaces
	var passwordmaxlength=6
	var themessage = "The following fields are required/incorrect: \n";

	if (document.form.firstname.value=="") {
		themessage = themessage + " - First Name\n";
	} else if (!re.exec(document.form.firstname.value)) {
		themessage = themessage + " -  First Name: Invalid Character Found!\n";
	}
	if (document.form.lastname.value=="") {
		themessage = themessage + " -  Last Name\n";
	} else if (!re.exec(document.form.lastname.value)) {
		themessage = themessage + " -  Last Name: Invalid Character Found!\n";
	}
	if (document.form.address.value=="") {
		themessage = themessage + " -  Address\n";
	} else if (!regan.exec(document.form.address.value)) {
		themessage = themessage + " -  Address: Invalid Character Found!\n";
	}
	if (document.form.city.value=="") {
		themessage = themessage + " -  City\n";
	} else if (!re.exec(document.form.city.value)) {
		themessage = themessage + " -  City: Invalid Character Found!\n";
	}
	if (document.form.postcode.value=="") {
		themessage = themessage + " -  Postal Code\n";
	}
	if (document.form.country.value=="") {
		themessage = themessage + " -  Country\n";
	} else if (!re.exec(document.form.country.value)) {
		themessage = themessage + " -  Country: Invalid Character Found!\n";
	}
	if (document.form.phone.value=="") {
		themessage = themessage + " -  Telephone Number\n";
	}
	if (document.form.email.value=="") {
		themessage = themessage + " -  Email\n";
	} else if ((document.form.email.value.indexOf('@') == -1) || (document.form.email.value.indexOf('.') == -1)) {
		themessage = themessage + " -  Email: Please enter correct email address!\n";
	}
	if (document.form.workexperience.value=="") {
		themessage = themessage + " -  Work Experience\n";
	} else if (!regan.exec(document.form.workexperience.value)) {
		themessage = themessage + " -  Work Experience: Invalid Character Found!\n";
	}
	if (document.form.qualifications.value=="") {
		themessage = themessage + " -  Qualifications";
	} else if (!regan.exec(document.form.qualifications.value)) {
		themessage = themessage + " -  Qualifications: Invalid Character Found!\n";
	}
	//alert if fields are empty and cancel form submit
	if (themessage == "The following fields are required/incorrect: \n") {
		document.form.submit();
	}
	else {
		alert(themessage);
		return false;

	}
}

function verifycallback() {

	re=/^[a-zA-Z\_]*$/; //allow chars
	reg=/^[a-zA-Z\_ ]*$/; //allow chars spaces
	regan=/^[a-zA-Z\_ 0-9]*$/; // allow number and chars and spaces
	var passwordmaxlength=6
	var themessage = "The following fields are required/incorrect: \n";

	if (document.form.firstname.value=="") {
		themessage = themessage + " - First Name\n";
	} else if (!re.exec(document.form.firstname.value)) {
		themessage = themessage + " -  First Name: Invalid Character Found!\n";
	}
	if (document.form.lastname.value=="") {
		themessage = themessage + " -  Last Name\n";
	} else if (!re.exec(document.form.lastname.value)) {
		themessage = themessage + " -  Last Name: Invalid Character Found!\n";
	}
	if (document.form.company.value=="") {
		themessage = themessage + " -  Company\n";
	} else if (!regan.exec(document.form.company.value)) {
		themessage = themessage + " -  Address: Invalid Character Found!\n";
	}
	if (document.form.phone.value=="") {
		themessage = themessage + " -  Telephone Number\n";
	}
	//alert if fields are empty and cancel form submit
	if (themessage == "The following fields are required/incorrect: \n") {
		document.form.submit();
	}
	else {
		alert(themessage);
		return false;

	}
}

myPix = new Array("/images/bar/leaf2.jpg","/images/bar/leaf3.jpg","/images/bar/leaf4.jpg","/images/bar/morning_sun.jpg","/images/bar/arctic.jpg")
imgCt = myPix.length 

function choosePic() {
	if (document.images) {
		randomNum = Math.floor((Math.random() * imgCt))
		document.myPicture.src = myPix[randomNum]
	}
}


function SymError()
{
  return true;
}
window.onerror = SymError;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}



<!-- Domain search script 

	function checkAll(theForm, cName, check) {
	for (i=0,n=theForm.elements.length;i<n;i++)
		if (theForm.elements[i].className.indexOf(cName) !=-1)
			theForm.elements[i].checked = check;
	}

	function TestForm(form)
	   {
		if ( !TestWhois(form) )
		return false;
		return true;
	   }

	function TestWhois(form)
	   {
		str = document.domainForm.dom.value;

		if ( str.indexOf('www.', 0) != -1)
		   {
			alert("\nDo not enter the www.\n\n");
			form.dom.value = "";
			document.domainForm.dom.focus();
			return false;
		   }

		if ( str.indexOf('.', 0) != -1)
		   {
			alert("\nDo not enter the domain extension.\n\n");
			form.dom.value = "";
			document.domainForm.dom.focus();
			return false;
		   }

		if ( str == "" )
		   {
			alert("\nThe domain field is blank.\n\n");
			document.domainForm.dom.focus();
			return false;
		   }

		for ( var i = 0; i < str.length; i++ )
		   {
			var ch = str.substring(i, i + 1);

			if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch) && (ch < "0" || "9" < ch)) && ch != '-')
			   {
				alert("The domain has illegal characters! Use only letters and numbers or a '-'");
				form.dom.value = "";
				document.domainForm.dom.focus();
				return false;
			   }
		   }

		return true;
	   }

// end domain search script -->



/* Functions that swaps images. */
function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
	objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
	if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
		(objStr.indexOf('document.all[')   ==0 && document.all   ==null))
	  objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
	obj = eval(objStr);
	if (obj != null) {
	  swapArray[j++] = obj;
	  swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
	  obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}
function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}
/* Functions that handle preload. */
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];}}
}

// stop hiding -->
