function sele() 
{
cat = document.weat.weat1.selectedIndex;
catval=document.weat.weat1.options[cat].value;
if (catval == "") return;
location.href = catval;
}

function fopen(url)
{
   window.open(url,'viewElection','height=300,width=400,scrollBars');
}

function goChoosen(choice)
{
	if(choice=="Channel")
	{
	if (document.editchan.channels.options[document.editchan.channels.selectedIndex].value != "") 
	{
	location = document.editchan.channels.options[document.editchan.channels.selectedIndex].value;
	}
	}
	else if(choice=="archives")
	{
	if (document.archiv.archives.options[document.archiv.archives.selectedIndex].value != "") 
	{
	location = document.archiv.archives.options[document.archiv.archives.selectedIndex].value;
	}
	}
	else if(choice=="Edition")
	{
	(document.editchan.editions.options[document.editchan.editions.selectedIndex].value != "") 
	{
	location = document.editchan.editions.options[document.editchan.editions.selectedIndex].value;
	}
	}
	else if(choice=="Weather")
	{
	if (document.selecter.city.options[document.selecter.city.selectedIndex].value != "") 
	{
	location = document.selecter.city.options[document.selecter.city.selectedIndex].value;
	}
	}
	else if(choice=="Columnist")
	{
	if (document.leftform.columnists.options[document.leftform.columnists.selectedIndex].value != "") 
	{
location = document.leftform.columnists.options[document.leftform.columnists.selectedIndex].value;
	}
	}
	else if(choice=="Chat")
	{
	if (document.leftform.chats.options[document.leftform.chats.selectedIndex].value != "") 
	{
	location = document.leftform.chats.options[document.leftform.chats.selectedIndex].value;
	}
	}
	else if (choice=="Search")
	{
	document.searchform.submit();
	}
	else if (choice=="Search1")
	{
	document.newsform.submit();
	}
}

// Feedback form script

function feed() 
        { 
	        var url=document.location; 
        	document.feedback.url1.value=url;
//			alert(document.feedback.url1.value)
        } 
		

function validate_form() 
	{ 
		if((document.feedback.realname.value=="") || 
		(eval(document.feedback.realname).value.charAt()==' ')) 
		{ 
			window.alert("Please enter your name"); 
			document.feedback.realname.focus(); 
			return false; 
		} 
		else if((document.feedback.mail.value=="") || (document.feedback.mail.value.indexOf('@') == -1) || (document.feedback.mail.value.indexOf('.') == -1) ) 
		{ 
			window.alert("Please enter a valid email Id"); 
			document.feedback.mail.focus(); 
			return false; 
		} 
		else if(document.feedback.comments.value=="") 
		{ 
			window.alert("Please enter your comments"); 
			document.feedback.comments.focus(); 
			return false; 
		} 
		Email = document.feedback.mail.value;
		return ChkWrongDomain(Email)
		return true;
}