function formHandler(form)
{
	if(document.form.site.selectedIndex == 0 )
	{
		alert("Please select a valid option");
		document.form.site.focus();
		return false;
	}
	else
	{
		var URL = document.form.site.options[document.form.site.selectedIndex].value;
		window.location.href = URL;
	}
}

function formHandler1(form1)
{
	if(document.form1.site.selectedIndex == 0 )
	{
		alert("Please select a valid option");
		document.form1.site.focus();
		return false;
	}
	else
	{
		var URL = document.form1.site.options[document.form1.site.selectedIndex].value;
		window.location.href = URL;
	}
}

function check(theform)
{
	if(document.offers_form.email.value == "")
	{
		alert("Please type an email id");
		document.offers_form.email.focus();
		return false;
	}
	if(document.offers_form.activity.selectedIndex == 0 )
	{
		alert("Please select a valid option");
		document.offers_form.activity.focus();
		return false;
	}
	return true;
}

function check1(theform)
{
	if(document.experience_form.email.value == "")
	{
		alert("Please type an email id");
		document.experience_form.email.focus();
		return false;
	}
	return true;
}


function check101(theform)
{
	if(theform.username.value == "")
	{
		alert("Username field is empty");
		theform.username.focus();
		return false;
	}
	if(theform.pass.value == "")
	{
		alert("Password field is empty");
		theform.pass.focus();
		return false;
	}
	return true;
}




function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}


var acePopupWindow=null;
function acePopup(mypage,myname,w,h,pos,infocus,scroll) 
{
	if (scroll!='') sc=scroll; else sc='no';
	if(pos=='random')
		{
			LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
			TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
		}
	if(pos=='center')
		{
			LeftPosition=(screen.width)?(screen.width-w)/2:100;
			TopPosition=(screen.height)?(screen.height-h)/2:100;
		}
	else 
		if((pos!='center' && pos!='random') || pos==null){LeftPosition=100;TopPosition=100;}
			settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars='+sc+',resizable=yes,dependent=no';
	acePopupWindow=window.open('',myname,settings);
	if(infocus=='back')
	{
		acePopupWindow.blur();
		acePopupWindow.location=mypage;
		acePopupWindow.blur();
	}
	else 
		acePopupWindow.location=mypage;
 return false;
}

if (document.images)
{
	SrcArr = new Array ("melm_bg_on","melm_bg");
	ImgArr = new Array ();
	for (i in SrcArr)
	{
		ImgArr[i] = new Image ();
		ImgArr[i].src ="img/" + SrcArr[i] + ".gif";
	}
}

function OverOn(id) {
	document.getElementById(id).style.backgroundImage="url(img/melm_bg_on.gif)";
}

function OverOff(id) { 
	document.getElementById(id).style.backgroundImage="url(img/melm_bg.gif)";
}

function Click(name) { 
	if (nameS!="") eval(nameS+".style.backgroundColor='#ffffff'");/*âîññòàíîâëåíèå ðàíåå âûáðàííîé*/ 
		eval(name+".style.backgroundColor='#2943f8'");/*öâåò âûáðàííîé ÿ÷åéêè*/       
	eval("nameS=name"); 
} 

