
/** creates an extra stylesheet **/
function addstyles(){

	//** Build js rendered stylesheet that css validators fail on **
	var jstyle = document.getElementsByTagName("head")[0];
	var lk = document.createElement("link");
	jstyle.appendChild(lk);
	lk.setAttribute("rel", "stylesheet");
	lk.setAttribute("type", "text/css");
	lk.setAttribute("href", "/css/js-vl.css");
}

function countSearch(){

	if(document.getElementById("sCount"))
	{
		searchRes = document.getElementById("errpage").getElementsByTagName("p").length-1;
		document.getElementById("sCount").innerHTML = "<strong>"+searchRes+"</strong>";
	}
}



function fieldCheck(fieldInQuestion)
	{
	if (fieldInQuestion.value == 'search for..' || fieldInQuestion.value == '')
		{
		fieldInQuestion.value = '';
		}
	}
	
function fieldCheckOut(fieldInQuestion)
	{
	if (fieldInQuestion.value == '' || fieldInQuestion.value == ' ')
		{
		fieldInQuestion.value = 'search for..';
		}
	}	
	
function zapDrops(toClasses)
	{
	document.getElementById('child-services').className=toClasses;
	document.getElementById('child-product-partners').className=toClasses;
	document.getElementById('child-contact').className=toClasses;
	}
	

function roll(theImage,theNewSrc)
	{
	theImage.src = '/gfx/' + theNewSrc;
	}
