if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
{ //test for MSIE x.x;

	var ieversion=new Number(RegExp.$1);
	
	if (ieversion<=7)
	{
		  
		  document.nativeGetElementById = document.getElementById;
		  //redefine it!
		  document.getElementById = function(id)
		  {
			var elem = document.nativeGetElementById(id);
		    
			if(elem)
		    {

		      //verify it is a valid match!
		      if(elem.attributes['id'] && elem.attributes['id'].value == id)
		      {
		    	  //valid match!
		        return elem;
		      } 
		      else 
		      {
		        //not a valid match!
		        //the non-standard, document.all array has keys for all name'd, and id'd elements
		        //start at one, because we know the first match, is wrong!
		        for(var i=1;i<document.all[id].length;i++)
		        {
		          if(document.all[id][i].attributes['id'] && document.all[id][i].attributes['id'].value == id)
		          {
		            return document.all[id][i];
		          }
		        }
		      }
		    }

		    return null;
		  };		
	}
}

function removeHTML(text)
{
	returnText = text.replace(/<\/?[^>]+(>|$)/g, "");
	return returnText;
}

function removeTabs(text)
{
	returnText = text.replace(/\t/g,"");
	return returnText;
}
function echeck(str) 
{
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	
	if (str.indexOf(at)==-1){
	   return false
	}
	
	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   return false
	}
	
	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
	    return false
	}
	
	 if (str.indexOf(at,(lat+1))!=-1){
	    return false
	 }
	
	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	    return false
	 }
	
	 if (str.indexOf(dot,(lat+2))==-1){
	    return false
	 }
	
	 if (str.indexOf(" ")!=-1){
	    return false
	 }
	
	 return true					
}

function jumpBeginPage()
{
	window.scroll(0,0);
}

function entsub(myform) 
{
  if (window.event && window.event.keyCode == 13)
    myform.submit();
  else
    return true;
}
