function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function cng_class(elem,clname)
{
	if (clname=='mouseover')
	{
		document.getElementById(elem).style.backgroundColor = "#e6e6e6";
		document.getElementById(elem).style.color = "#333333";
		document.getElementById(elem).style.fontWeight ="bold";
	}
	else
	{
		document.getElementById(elem).style.backgroundColor = "#FFFFFF";
		document.getElementById(elem).style.color = "#333333";
		document.getElementById(elem).style.fontWeight ="normal";
	}

	//document.getElementById(elem).attributes['class'].value = clname;
}

function checkempty(fmname,fnm,msg)
{
	if (document[fmname][fnm].value=="")
	{
		alert (msg);
		document[fmname][fnm].focus();
		return false;
	}
	return true;
}
function comparefld(fmname,fnm1,fnm2,msg)
{
	psd1=document[fmname][fnm1].value;
	psd2=document[fmname][fnm2].value;
	
	if (psd1!=psd2)
	{
		alert (msg);
		document[fmname][fnm2].focus();
		document[fmname][fnm2].select();
		return false;
	}
	return true;
}
function checkemail(fmname,fnm,msg)
{
	if((document[fmname][fnm].value.indexOf('.','0')==-1) || (document[fmname][fnm].value.indexOf('@','0')==-1))
	{
	alert(msg);
	document[fmname][fnm].focus();
	return false;
	
	}
	return true;
}
function checkdropdown(fmname,fnm,msg)
{
	if (document[fmname][fnm].selectedIndex==0)
	{
		alert (msg);
		document[fmname][fnm].focus();
		return false;
	}
	return true;
}
function checkradio(fmname,fnm,msg)
{
    for(i=0;i<=document[fmname][fnm].length-1;i++){
        if (document[fmname][fnm][i].checked){
            return true;
            break;
        }
    }
    alert(msg);
	return false;
}