function goURL(sUrl){
	if (sUrl != '' ) {
		window.location.href='/' + sUrl;
	}
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function doConfirm(sword,sgoto){if(confirm('È·ÊµÒª' + sword + 'Âð£¿±¾²Ù×÷½«²»¿É»Ö¸´£¡')){window.location='' + sgoto + '';}}	
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function getObject(objectId) { 
if(document.getElementById && document.getElementById(objectId)) { 
// W3C DOM 
return document.getElementById(objectId); 
} else if (document.all && document.all(objectId)) { 
// MSIE 4 DOM 
return document.all(objectId); 
} else if (document.layers && document.layers[objectId]) { 
// NN 4 DOM.. note: this won't find nested layers 
return document.layers[objectId]; 
} else { 
return false; 
} 
} // getObject 

function docid(name){return document.getElementById(name);}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function checkNum(str){
  if(!str   ||   isNaN(str))  alert('Ö»ÄÜÊäÈëÊý×Ö');   
//  str   =   (str   *   1).toString();   
//  if(str.indexOf(".")   ==   -1)   return   1;   
//  return   2;
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function chkemail(a)
{	var i=a.length;
	var temp = a.indexOf('@');
	var all = a.substring(temp);
	var tempd = all.indexOf('.')+temp;
	if (temp <=0 ) {  alert('ÓÊÏäµØÖ·ÓÐÎó'); }
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
//º¯ÊýÃû£ºCheckDateTime      
//¹¦ÄÜ½éÉÜ£º¼ì²éÊÇ·ñÎªÈÕÆÚÊ±¼ä    
function  CheckDateTime(str){                            
       var  reg  =  /^(\d+)-(\d{1,2})-(\d{1,2})  (\d{1,2}):(\d{1,2}):(\d{1,2})$/;    
       var  r  =  str.match(reg);    
       if(r==null)return  false;    
       r[2]=r[2]-1;    
       var  d=  new  Date(r[1],  r[2],r[3],  r[4],r[5],  r[6]);    
       if(d.getFullYear()!=r[1])return  false;    
       if(d.getMonth()!=r[2])return  false;    
       if(d.getDate()!=r[3])return  false;    
       if(d.getHours()!=r[4])return  false;    
       if(d.getMinutes()!=r[5])return  false;    
       if(d.getSeconds()!=r[6])return  false;    
       return  true;  
} 
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function flashpic(pic_width,pic_height,text_height,pics,links,texts) {

var focus_width=pic_width;
var focus_height=pic_height;
var text_height=text_height;
var swf_height = focus_height+text_height
var a = "center";
var b = "b";

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain">');
document.write('<param name="movie" value="/Images/flashpic.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="bgcolor" value="#F1F2F1">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&a='+a+'&isb='+b+'">');
document.write('<embed src="/Images/flashpic.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&a='+a+'&isb='+b+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');

}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function flvshow(swf_width,swf_height,texts,files,iscontinue,isautoplay,coright) {
if(swf_width==''){swf_width='500';}
if(swf_height==''){swf_height='224';}
if(iscontinue=='1'){iscontinue='1';}else{iscontinue='0';}
if(isautoplay=='1'){isautoplay='1';}else{isautoplay='0';}
if(files==''){files='http://www.transformersmovie.com/transformers_640.flv';}
//if(jmjm=='1' && files!=''){files=uncompile(files);}
switch(coright){
case 'logo':coright='&LogoUrl=/images/LogoForFlv.png';break;
case 'text':coright='&LogoText=CnSai.Com';break;
default:coright='';
}
var flashVars;
flashVars='vcastr_file='+files+'&vcastr_title='+texts+coright+'&BarColor=0xFF6600&BarPosition=1&IsContinue='+iscontinue+'&IsAutoPlay='+isautoplay;

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ swf_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="/images/vcastr22.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name="allowFullScreen" value="true" />');
document.write('<param name="FlashVars" value="'+flashVars+'">');
document.write('<embed src="/images/vcastr22.swf" allowFullScreen="true" FlashVars="'+flashVars+'" menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');

}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function get_Code() { 
		var CodeFile = "/Inc/checkcode.asp"; 
		if(document.getElementById("checkcodelogin")) 
				document.getElementById("checkcodelogin").innerHTML = '<img src="'+CodeFile+'" alt="µã»÷Ë¢ÐÂÑéÖ¤Âë" style="cursor:pointer;border:0;vertical-align:middle;" onclick="this.src=\''+CodeFile+'?t=\'+Math.random()" />' 
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function selctdiv(nam,cou,index){
//    document.getElementById(nam+index).className="select";  
    document.getElementById(nam+index).style.display = "block";  
    for( var i = 1 ; i<(cou+1); i++){
        if( i != index ){ 
//            document.getElementById(nam+i).className="";
            document.getElementById(nam+i).style.display = "none";  
        } 
    } 
}

function selctdiv1(nam,cou,index){
    document.getElementById(nam+index).className="select";  
    document.getElementById(nam+index).style.display = "block";  
    for( var i = 1 ; i<(cou+1); i++){
        if( i != index ){ 
            document.getElementById(nam+i).className="";
            document.getElementById(nam+i).style.display = "none";  
        } 
    } 
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function startmarquee(elementid) {
var p=false;
var t;
var lh,speed,delay;
lh=19;speed=20;delay=3000;

var o=document.getElementById(elementid);
o.innerHTML+=o.innerHTML;
o.style.marginTop=0;
o.onmouseover=function(){p=true;}
o.onmouseout=function(){p=false;}
function start(){
t=setInterval(scrolling,speed);
if(!p) o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
}
function scrolling(){
if(parseInt(o.style.marginTop)%lh!=0){
o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
if(Math.abs(parseInt(o.style.marginTop))>=o.scrollHeight/2) o.style.marginTop=0;
}else{
clearInterval(t);
setTimeout(start,delay);
}
}
setTimeout(start,delay);
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function bbimg(o){
	var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
	return false;
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function SetSize(obj, width, height){ 
	myImage = new Image(); 
	myImage.src = obj.src; 
	if (myImage.width>0 && myImage.height>0) 
	{ 
		var rate = 1; 
		if (myImage.width>width || myImage.height>height) 
		{ 
			if (width/myImage.width<height/myImage.height) 
			{ 
				rate = width/myImage.width; 
			} 
			else 
			{ 
				rate = height/myImage.height; 
			} 
		} 
		if (window.navigator.appName == "Microsoft Internet Explorer") 
		{ 
			obj.style.zoom = rate; 
		} 
		else 
		{ 
			obj.width = myImage.width*rate; 
			obj.height = myImage.height*rate; 
		} 
	} 
} 

//ÐÞ¸ÄselectÑ¡ÖÐÏî¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function makecheck(c,k)
{
for (var i=0;i<c.options.length ;i++ )
{

if (c.options(i).value==k)
{
c.selectedIndex =i;
}
}
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
function getvalue(name)
{
	var str=window.location.search;
	if (str.indexOf(name)!=-1){
		var pos_start=str.indexOf(name)+name.length+1;
		var pos_end=str.indexOf("&",pos_start);
		if (pos_end==-1)
		{
			return str.substring(pos_start);
		}
		else
		{
			return str.substring(pos_start,pos_end)
		}
	}else{
		return "";
	}
}
//¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª

//¸ü¸Ä×ÖÌå´óÐ¡
var status0        = '';
var curfontsize    = 10;
var curlineheight  = 18;
function fontSize(type,objname){
  if (type=="b"){
    if(curfontsize<64){
      document.getElementById(objname).style.fontSize=(++curfontsize)+'pt';
      document.getElementById(objname).style.lineHeight=(++curlineheight)+'pt';
    }
  }
  else {
    if(curfontsize>8){
      document.getElementById(objname).style.fontSize=(--curfontsize)+'pt';
      document.getElementById(objname).style.lineHeight=(--curlineheight)+'pt';
    }
  }
}
function setColor(objname,color)
{
document.getElementById(objname).style.color=color
}
function uncompile(code) 
{ 
code=unescape(code); 
var c=String.fromCharCode(code.charCodeAt(0)-code.length); 
for(var i=1;i<code.length;i++){ 
c+=String.fromCharCode(code.charCodeAt(i)-c.charCodeAt(i-1)); 
} 
return c; 
}