function validate()
{


var name=document.getElementById("NameTxt").value;
var email=document.getElementById("EmailTxt").value;
var phone=document.getElementById("PhoneTxt").value;
var phonelenght=document.getElementById("PhoneTxt").value.length;

    if(name=="")
        {
        alert("Please enter the name");
        document.getElementById("NameTxt").focus();
        window.event.returnValue = false;
        }
    
    else if(email.indexOf("@") < 1 || (email.lastIndexOf(".") - email.indexOf("@")) < 2)
	    {
		    alert("Please enter valid email address i.e abc@xyz.com");
		    document.getElementById("EmailTxt").focus();
		    window.event.returnValue = false;
	    }
	else if(phonelenght<10 || isNaN(phone))
        {
        alert("Please enter valid mobile no.");
        document.getElementById("PhoneTxt").focus();
        window.event.returnValue = false;
        } 
	
}

function ShowDiv()
{
document.getElementById("sharefeedback").style.display='block';
}
function HideDiv()
{
document.getElementById("sharefeedback").style.display='none';
}
function Changecur(id)
{

document.getElementById(id).style.cursor = 'pointer';

}

function returnurl()
{
window.open("http://www.hindustantimes.com/bythis/default.aspx?url="+window.location.href,null,'height=270,width=260,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no');

}