var flashId='divSecPar';

function hideCalendar() {
    e = document.getElementById('customduration');  
	e.style.display = 'none'; 
}

function showCalendar() {
	 e = document.getElementById('customduration');  
f = document.getElementById('rblDurationChoice5'); 
if ( f.value == '5' &&  f.checked == true) { 
		e.style.display = 'block'; 
	}  else {
		e.style.display = 'none'; 
	}
}


function addAnotherParam()
{
	var obj=document.getElementById(flashId);
	obj.style.display='';
	document.location.href='#secopar';
	flashItem();
	var obj2=document.getElementById("addanotherbutton");
	obj2.disabled = true;
}

var flash;
var fCount=0;
var nColor='#ffffff';
function flashItem()
{
	document.getElementById(flashId).style.backgroundColor='grey';
	fCount=0;
	flash=window.setInterval('normalizeItem()',50);
}

function normalizeItem()
{
	if(document.getElementById(flashId).style.backgroundColor!=nColor)
	{
		document.getElementById(flashId).style.backgroundColor=nColor;
		nColor=document.getElementById(flashId).style.backgroundColor;
	}
	else
	{
		document.getElementById(flashId).style.backgroundColor='grey';
	}
	fCount++;

	if (fCount==3)
	{
		window.clearInterval(flash);
	}

}


