function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
	// this is the way the standards work
	var style2 = document.getElementById(whichLayer).style;
	style2.display = style2.display? "":"block";
	}
	else if (document.all)
	{
	// this is the way old msie versions work
	var style2 = document.all[whichLayer].style;
	style2.display = style2.display? "":"block";
	}
	else if (document.layers)
	{
	// this is the way nn4 works
	var style2 = document.layers[whichLayer].style;
	style2.display = style2.display? "":"block";
	}
}


//Ruwan Pradeep Geeganage
//2009-06-17
function ShowDiv(div_id)
{
	var ele=document.getElementById(div_id);
	//var ele2=document.getElementById(s)
	
	if(ele.style.display!='')
	{
		ele.style.display='';
		//ele.style.Top=ele2.style.bottom;
//		//ele.style.right=ele2.style.right;// - ele2.style.width;
//		ele.style.right='2px';
//		ele.style.zIndex='9999';
//		ele.style.position='relative';
//		ele.style.backgroundColor='#ffffff';
//		ele.style.borderWidth='1px';
//		ele.style.borderStyle='solid';
//		ele.style.borderColor='#006699';
//		ele.style.width='98%';
//		ele.style.paddingLeft='5px';
//		ele.style.paddingRight='5px';
//		ele.style.paddingTop='5px';
//		ele.style.paddingBottom='5px';	
	}
	else
	{
		ele.style.display='none';		
	}
	//alert('test');
	return false;
}

function getNewCaptcha()
{
	
	document.getElementById('hdnCaptcha').value = 1;
	document.getElementById('hdnFocusOnCaptcha').value = '1';
	//alert(document.getElementById('hdnFocusOnCaptcha').value);
	document.contact_form.submit(0);
}