
	function goLeft()
	{  
		document.getElementById('scroll_box').scrollLeft=document.getElementById('scroll_box').scrollLeft-3;  
	}
	function goRight()
	{  
		document.getElementById('scroll_box').scrollLeft=document.getElementById('scroll_box').scrollLeft+3; 
	}
 


  function openWinURL(url,title,nw,nh) 
  {
    	var win = new Window({className:"alphacube", width: 300, height:300, constraint: {top: 10, bottom:10}, recenterAuto:true, closable: true,  maximizable: false, minimizable: false, resizable: false,})
   	 win.getContent().update("<h1>Hello</h1>Word");     
    	win.setConstraint(true, {left:10, right:10, top:10, bottom:10})

	win.setURL(url);
	win.setTitle("<font style=' font-size:14px; font-weight:bold; color:black; ' >"+title+"</font>"); 
	
	if((nw>0)&&(nh>0))
	{
		win.setSize(nw,nh);
	} 

	win.showCenter(false,190);
	win.setZIndex(100); 

  }       




function ScrollM()
{
	document.getElementById('mrq').start(); 
}


function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
} 

function RunURL(url)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return ;
	} 


	if (xmlHttp) 
	{
		xmlHttp.open('POST', url, false);
		xmlHttp.send(null);
		return xmlHttp.responseText;
	} 
	else 
	{
		return "Error - Please try again";
	}

} 

function sureOp(url) 
    {
	confirmObj=confirm("Do you really want to delete ?");
	if (confirmObj)
	{
		document.location.href=url;
	}
	return false;
     }


function IsNumeric(sText)
{
   var ValidChars = "0123456789.-";
   var IsNumber=true;
   var Char;

 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
   }
function checkMail(mail)
{
	var x = mail;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(x)) 
}

