// JavaScript Document
function DisShow(objectId){
	var object=document.getElementById(objectId);
	object.style.display="none";
}


function getProduct(key){
    location.href="../products/index.aspx?cid="+key
}

function gosearch(){
    location.href="/products/index.aspx?keywords="+document.all.keywords.value;
}

function chkmenu(id){
    if (id !=""){
    chkmenuid=id
    var object=document.getElementById("menu"+id);
    object.style.display= (object.style.display=="none") ? "block" : "none"
    }
        
}

function openmenu(id){
if (id !=""){
    for (var i=0;i<myClass.length;i++){
        if (myClass[i][0]==id){
            chkmenu(myClass[i][2])
            return true;
        }
    }
    }
}

	function openwin(url,w,h)
	{
		mywin=window.open(url,"mynews","width="+w+",height="+h);
		mywin.moveTo(100,50);
		mywin.focus();
	}

function changeImg(object,img){
	object.src=img;
}
function changeBgcolor(object,color){
	object.bgColor=color
}

function strReplace(str,f,s){
	while (str.indexOf(f,0) != -1){
		str = str.replace(f, s)
	}
	return str;
}
function getPxValue(val){
	return parseInt(val.substring(0,val.length-2));
}
var focus_object
function get_focus()
{
	if (focus_object )
		focus_object.className="member_input"
	var tempobject=event.srcElement
	ftype=tempobject.type
	if(ftype=='text' || ftype=='password' ){
		tempobject.className="member_input2"
		focus_object=tempobject
	}
}

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function setsysinfobor(keyword){
	sysMessageBar.innerHTML="<marquee scrolldelay=\"180\">"+keyword+"</marquee>"
}

function non(){
}