		
Image11= new Image(10,10)
Image11.src = "img/tr.png"

Image12 = new Image(10,10)
Image12.src = "img/tl.png"

Image13 = new Image(10,10)
Image13.src = "img/br.png"

Image14= new Image(10,10)
Image14.src = "img/bl.png"
		
Image15= new Image(1,1)
Image15.src = "img/hp/login_hp_btn_on.png"


function FnChk()
{
    if(search_form.kw.value=="")
        {
        alert("Enter Search Keyword！");
        search_form.kw.focus();
        return false;
        }

        //try to do extention checking in Javascript
return true;
}

function FnChk2()
{
    if(search_form2.kw2.value=="")
        {
        alert("Enter Search Keyword！");
        search_form2.kw2.focus();
        return false;
        }

        //try to do extention checking in Javascript
return true;
}

function switchpage(select) {
    var index;
    for(index=0; index<select.options.length; index++)
        if(select.options[index].selected)
            {
                if(select.options[index].value!="")
                window.location.href=select.options[index].value;
                break;
            }
}

function roll_over(img_name, img_src)
{
   document[img_name].src = img_src;
}


function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
 window.open(href, windowname, 'width=400,height=150,scrollbars=no');
 
return false;
}

function play(id)
{
	var media_id=id;
	var url="/php/click.php?id="+media_id;
	
	//document.write(url)
 	window.open(url, "windowname", 'width=505,height=311,scrollbars=no')
 
return false;
}

function play2(id)
{
	var media_id=id;
	var url="/php/click_T.php?id="+media_id;
	
	//document.write(url)
 	window.open(url, "windowname", 'width=505,height=311,scrollbars=no')
 
return false;
}

function vote(id)
{
	var media_id=id;
	var url="/php/vote.php?id="+media_id;
	
	//document.write(url)
 	window.open(url, "windowname", 'width=360,height=150,scrollbars=no')
 
return false;
}

function vote2(id)
{
	var media_id=id;
	var url="/php/vote_T.php?id="+media_id;
	
	//document.write(url)
 	window.open(url, "windowname", 'width=360,height=150,scrollbars=no')
 
return false;
}



function hidestatus()
{
	var statusmsg=""
	window.status=statusmsg
	return true
}