	function onBlur(obj, msg){
		if(obj.value=="") obj.value=msg;
	}
	
	function onFocus(obj, msg){
		if(obj.value=="") obj.value=msg;
	}
	
function showhide(aEvent,obj)  
{  
	
	var pos=getPosition(aEvent);  
                    
			obj.style.position="absolute";
			obj.style.zIndex="1";
			obj.style.top=pos.y+'px'; 
			obj.style.left=pos.x+'px';   
			
			

		
		if(obj.style.visibility=="visible")
		{
			obj.style.visibility='hidden';//(For close showhide function is called so at first we set the condition obj.style.visibility=hidden. Now when we hit the rashi link at first else condition is executed)
			
		}
		  
		else
		{
			for(var i=1; i<=12; i++)   
			{
				var curdiv=obj.id; 
				//alert(curdiv);
				var divid="hor"+i;             
				if(divid==curdiv) 	
				{
					<!--if hitted link is activated  then it is visible and the rest of the rashi is hidden withour current hit link -->
					document.getElementById(curdiv).style.visibility="visible";	
					
				}
				else
				{
					document.getElementById(divid).style.visibility="hidden";  
			   	}  
	
			} 
		} 

		return false;
}




function getPosition(e) {
    e = e || window.event;
    var cursor = {x:0, y:0};
    if (e.pageX || e.pageY) {
        cursor.x = e.pageX;
        cursor.y = e.pageY;
    }
    else {
        cursor.x = e.clientX +
            (document.documentElement.scrollLeft ||
            document.body.scrollLeft) -
            document.documentElement.clientLeft;
        cursor.y = e.clientY +
		 	(document.documentElement.scrollTop ||
            document.body.clientTop) -
            document.documentElement.clientTop;
          /*  (document.getElementById('iefix').scrollTop ||
            document.body.scrollTop) -
            document.getElementById('iefix').clientTop;	*/		
    }
    return cursor;
}

	function validate_comment(frm)
	{
		var goodEmail =document.form2.email.value.match(/\b(^(\S+@).+((\.com)|(\.coop)|(\.name)|(\.aero)|(\.museum)|(\.pro)|(\.net)|(\.info)| (\.edu)|(\.biz)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
	
		if(document.form2.name.value=="")
		{
			alert('Please enter your Full Name.');
			return false;
		}
		else if(document.form2.email.value=="")
		{
			alert('Please enter your Email Address.');
			return false;
		}
		else if(!goodEmail)
		{
		alert('Please enter your Valid Email Address.');
			return false;	
		}
		else if(document.form2.comment.value=="")
		{
			alert('Please type your comment.');
			return false;
		}
		else if(document.form2.txtCaptcha.value=="")
		{
			alert('Please type characters as in box.');
			return false;
		}
		
		else
		return true;
	}

