document.write('<script language="JavaScript" src="js/aScroller.js"></script>');

//XMLHttpRequest
function createHttpRequest(){
 if(window.ActiveXObject){
  try{
   return new ActiveXObject("Msxml2.XMLHTTP");
  }catch(e){
   try{
    return new ActiveXObject("Microsoft.XMLHTTP");
   }catch(e2){
    return null;
   }
  }
 }else if(window.XMLHttpRequest){
  return new XMLHttpRequest();
 }else{
  return null;
 }
}

//Mobile Mail
function send_mobile(){
 var fid='mobile_mail';
 var u = document.mform.user.value;
 var d = document.mform.domain.value;
 var mailto=u+'@'+d;
 var charset = document.mform.charset.value;
 var subject = document.mform.subject.value;
 var content = document.mform.content.value;
 var from_name = document.mform.from_name.value;
 var from_mail = document.mform.from_mail.value;
 var sendUrl='admin/mobile_send.php';
 sendUrl+='?charset='+charset;
 sendUrl+='&mailto='+mailto;
 sendUrl+='&subject='+subject;
 sendUrl+='&content='+content;
 sendUrl+='&from_name='+from_name;
 sendUrl+='&from_mail='+from_mail;
 var httpoj = createHttpRequest();
 document.getElementById(fid).innerHTML="SENDING...";
 httpoj.open('get',sendUrl+'&d='+(new Date()).getTime(),true);
 httpoj.onreadystatechange = function(){
  if(httpoj.readyState==4){
   if(httpoj.responseText==""){
	void(0);
   }else{
    document.getElementById(fid).innerHTML=httpoj.responseText;
   }
  }
 }
 httpoj.send('');
}


function open_mobile(){
 window.open('mobile.php','mobile','width=550,height=650,menubar=no,toolbar=no,scrollbars=yes');
}



//¡Elash£öÅ½¦

function $(id){
 if (document.getElementById) return document.getElementById(id);
 else if (document.all) return document.all(id);
}

//<![CDATA[
function fl(hei,hhei){
 var swf = new jp.catalase.SwfTagWriter('img/index/1006_flash.swf?hhei='+hhei+'&d='+(new Date()).getTime(),'',340,hei);
 $("flash").innerHTML = swf.writeHTML();
}
//]]>

function newsHeight(){
 $('newsdl').style.height=xHeight('itemul');
}



