﻿/*function $(o){
    return document.getElementById(o);
}*/
var t=1;
function externallinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "ext") 
     anchor.target = "_blank"; 
 } 
} 


function display(id,status)
{
    if(status)
    {
        $(id).style.display="none";
    }
    else{
         $(id).style.display="block";
    }
}

/****martbase搜索****end**/

function onloads()
{
externallinks();
renewServerTime();
    
}
       window.onload = function (){
    onloads_Static();
}
function onloads_Static()
{
    externallinks();
   
}
function checkemail(email)
      {
			var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
			if(myreg.test(email))
			{
				return true;
			}
			else
			{
				return false;
			}
}
function checkeurl(url)
      {
			var myreg = /^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/;

			if(myreg.test(url))
			{
				return true;
			}
			else
			{
				return false;
			}
}
function zipped(m,id)
{
    if(m.className=="zipped")
    {
    
        document.getElementById(id).style.display="block";
        m.className="unzipped";
    }
    else
    {
       document.getElementById(id).style.display="none";
         m.className="zipped";
    }
}
function goInvoice(url) {
    window.location = url;
    }





