//-- Dropdown alert Start


var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var bouncelimit=8 
var strIamHere=0

//-----------------
function startMessage(ID,pos){
strIamHere=1
if (!dom&&!ie&&!ns4)
return
messagewin=(dom)?document.getElementById(ID).style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
messagewin.top=scroll_top-250
messagewin.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin("+pos+")",40)
}

function dropin(pos){
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(messagewin.top)<pos+scroll_top)
messagewin.top=parseInt(messagewin.top)+40
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",100)
}
}
function bouncein(){
messagewin.top=parseInt(messagewin.top)-bouncelimit
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
setTimeout("terminatemessage()",10000);
}
}
function terminatemessage(){
if (window.bouncestart){
clearInterval(bouncestart)
messagewin.visibility="hidden"
bouncelimit=8
strIamHere=0
}
}
function checker(ID,pos){
if(strIamHere==0){
startMessage(ID,pos);
}
}


function checkUncheck()
{
	if (document.formx.chk.checked == true)
	{
		checkAll(document.formx.chkgen);
	}
	else
	{
		uncheckAll(document.formx.chkgen)
	}
}
function checkAll(field)
{
	for (i = 0; i < field.length; i++)
		field[i].checked = true ;
}

function uncheckAll(field)
{
	for (i = 0; i < field.length; i++)
		field[i].checked = false ;
}