	function getRefToDiv(divID)
	{
		if (document.layers )				// Netscape layers
			return document.layers[divID];
		if (document.getElementById)		// DOM; IE5, NS6, Mozilla, Opera
			return document.getElementById(divID);
		if (document.all)					// Proprietary DOM; IE4
			return document.all[divID];
		if (document[divID])				// Netscape alternative
			return document[divID];
		return false;
	}

	function emptyfield(textObj)
	{
		if (textObj.value.length == 0) return true;
		for (var i = 0; i < textObj.value.length; ++i)
		{
			var ch = textObj.value.charAt(i);
			if (ch != " " && ch != "\t") return false;
		}
		return true;
	}

	function checkChars(objValue, maxChars, spanId)
	{
		if (objValue.value.length > maxChars)
		{
			document.getElementById(spanId).innerHTML = 0;
			objValue.value = objValue.value.substring(0, maxChars);
		} else
		{
			document.getElementById(spanId).innerHTML = maxChars - objValue.value.length;
		}
	}
	
	/*
	Derived from a script by Alejandro Gervasio. 
	Modified to work in FireFox by Stefan Mischook for Killersites.com

	How it works: just apply the CSS class of 'column' to your pages' main columns.
	*/
	matchColumns=function()
	{ 

		 var divs,contDivs,maxHeight,lessHeight,divHeight,d; 
		
		 // get all <div> elements in the document 

		 divs=document.getElementsByTagName('div'); 

		 contDivs=[]; 

		 // initialize maximum height value 

		 maxHeight=0; 
		 lessHeight=0;

		 // iterate over all <div> elements in the document 

		 for(var i=0;i<divs.length;i++){ 
			  
			  // make collection with <div> elements with class attribute 'container' 

			  if(/\bcolumn\b/.test(divs[i].className)){ 

					d=divs[i]; 

					contDivs[contDivs.length]=d;
					
					// Sep 2, 2009 - WebMeridian reset container <div> min-height to obtain fresh height
					contDivs[contDivs.length-1].style.minHeight="0px"; 

					// determine height for <div> element 
					if(d.offsetHeight){ 

						 divHeight=d.offsetHeight; 					

					} 

					else if(d.style.pixelHeight){ 

						 divHeight=d.style.pixelHeight;					 

					} 

					// calculate maximum height 
					maxHeight=Math.max(maxHeight,divHeight); 

			  } 

 			  // Oct 30, 2009 - WebMeridian added this block to get div lesscolumn height to reduce the other div columns.
			  if(/\blesscolumn\b/.test(divs[i].className)){ 

					d=divs[i]; 
					
					// determine height for <div> element 
					if(d.offsetHeight){ 

						 divHeight=d.offsetHeight; 					

					} 

					else if(d.style.pixelHeight){ 

						 divHeight=d.style.pixelHeight;					 

					} 

					// calculate maximum height 
					lessHeight=Math.max(lessHeight,divHeight); 

			  } 

		  } 

		 // Sep 2, 2009 - WebMeridian assigned maximum height value to all min-height of container <div> elements 
		 for(var i=0;i<contDivs.length;i++){ 

			  contDivs[i].style.minHeight=(maxHeight - lessHeight) + "px"; 

		 } 

	} 

	// runs the script when page loads 
	window.onload=function()
	{ 

		 if(document.getElementsByTagName)
		 { 
			  matchColumns();			 
		 } 

	}

	// Sep 2, 2009 - WebMeridian ran the script when window resizes 
	window.onresize=function()
	{ 

		 if(document.getElementsByTagName)
		 { 
			  matchColumns();			 
		 } 

	} 