var title1=window.document.title;
for(i=0;i<title1.length;i++)
{
	title1 = String(title1).replace(' ',"%20");
}
function MM_openBrWindow(theURL,winName,features)
{ //v2.0
	window.open(theURL,winName,features);
}
function surfto(s)
{
	if(s.options[s.selectedIndex].value!="none")
	{
		var url=s.options[s.selectedIndex].value;
		parent.top.location.href=url;
	}
}
function imageWindow(fname)
{
	win=window.open(fname,'slideshow','menubar=no,resizable=no,statusbar=no,toolbar=no,height=375,width=250,scrollbars=no');
}
function subm()
{
	url="http://community.expressindia.com/mail/post.php" + "?" + window.location;
	window.open(url,'pop','width=463,height=410');
}
function comments(content_id)
{
	url="comments_form.php?content_id="+content_id;
	window.open(url,'pop','width=468,height=380');
}

function checkit(act)
{
	var allcheck=true;
	if(document.postit.subject.value=="")
	{
		alert("Enter The Subject");
		document.postit.subject.focus();
		allcheck=false;
		return(allcheck);
	}
	if(document.postit.message.value=="")
	{
		alert("Enter The Message");
		document.postit.message.focus();
		allcheck=false;
		return(allcheck);
	}
	if(document.postit.name.value=="")
	{
		alert("Enter Your Name");
		document.postit.name.focus();
		allcheck=false;
		return(allcheck);
	}
	if(document.postit.country.value=="")
	{
		alert("Select Your Country");
		document.postit.country.focus();
		allcheck=false;
		return(allcheck);
	}
	if(document.postit.email.value=="")
	{
		alert("Enter Your Mailid");
		document.postit.email.focus();
		allcheck=false;
		return(allcheck);
	}
	if(allcheck==true)
	{
	document.postit.action=act;

	topicid=81;
	subject=document.postit.subject.value;
	message=document.postit.message.value;
	yourclosing=document.postit.yourclosing.value;
	country=document.postit.country.value;
	name=document.postit.name.value;
	email=document.postit.email.value;

	if(act=="preview.php"){		window.open('preview.php?topicid='+topicid+'&subject='+subject+'&message='+message+'&yourclosing='+yourclosing+'&country='+country+'&name='+name+'&email='+email,'preview','menubar=no,resizable=no,statusbar=no,toolbar=no,height=411,width=312,scrollbars=no');
		document.postit.target='preview';
	}else
	document.postit.target='_self';
	}
}