var ids=new Array('huicq');
function switchid(id){
	if(ids.length == 1)
	{	hideunhide(id);
	}
	else
	{	hideallids();
		showdiv(id);
	}
}
function hideallids(){
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}
function hidediv(id) {
	document.getElementById(id).style.display = 'none';
}

function showdiv(id) {
	document.getElementById(id).style.display = 'block';
}

function hideunhide(id) {
	if(document.getElementById(id).style.display == 'block')
		document.getElementById(id).style.display = 'none';
	else
		document.getElementById(id).style.display = 'block';		
}

function getElementByClass(theClass) {
	//Create Array of All HTML Tags
	var allHTMLTags=document.getElementsByTagName("*");
	//Loop through all tags using a for loop
	for (i=0; i<allHTMLTags.length; i++) 
	{	//Get all tags with the specified class name.
		if (allHTMLTags[i].className==theClass) 
		{	//Place any code you want to apply to all
			//pages with the class specified.
			//In this example is to �display:none;� them
			//Making them all dissapear on the page.
			if(allHTMLTags[i].style.height=='120px')
			{	allHTMLTags[i].style.height='auto';
			}
			else
				allHTMLTags[i].style.height='120px';
		}
	}
}

function sendForm()
{	var missingField = 0;
	/* NOT USED NOW, used before to check spam code
	if(document.getElementById('code').value != 'VMG-Partners')
	{	document.getElementById('codeli').style.color = 'red';
		missingField = 1;
	}*/
	
	if(missingField==0)
	{	document.formzapitvane.submit();
	}
}
