﻿ function hide_news_text(id)
        {

          var id=document.getElementById("extra_news_id"+id);
           id.style.display="none";


        }


		
		
function is_number(id)
{
	var t=document.getElementById(id);
	t=t.value;

	if(isNaN(t) || t<0)
	{
		alert("Please Enter Just Digital Value And Positive Value ");
		var t=document.getElementById(id);
		t.focus();
		t.select();
	}


}


		
		
function clear_text(id)

   {

    var id=document.getElementById(id);

    id.value="";



   }


   function display_news_text(id)
        {

          var id=document.getElementById("extra_news_id"+id);
           id.style.display="";


        }

		
		
function isEMailAddr(email) 
    {
		var t=document.getElementById(email);     
		var str = t.value;
		  if(str.length!=0)
		   {
			var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
				if (!str.match(re))
					{
						//alert("Verify the email address format.");
						 t.focus();
						 t.select(); 
						return false;
					} 
				  else
					{
						return true;
					}
			}
	 }

	 
	 
 function isEMailAddr2(email) 
    {
		var t=document.getElementById(email);     
		var str = t.value;
		  if(str.length!=0)
		   {
			var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
				if (!str.match(re))
					{
						alert("Verify the email address format.");
						 t.focus();
						 t.select(); 
						return false;
					} 
				  else
					{
						return true;
					}
			}
	 }
	 
	 
	 
function right_direction(ID)

   {

   var ID=document.getElementById(ID);

   ID.start();

   ID.direction="right";



   }





function left_direction(ID)

   {

   var ID=document.getElementById(ID);

   ID.start();

   ID.direction="left";



   }







function stop_marquee(ID)

   {

   var ID=document.getElementById(ID);

   ID.stop();



   }

   

