var skin_url = 'images/';
function $northern(id){
  return document.getElementById(id);	
}

function hide_e(id){
  $northern(id).style.display = 'none';	
  history.go(0);
}
function hide_e1(id){
	  $northern(id).style.display = 'none';	
	}

function show_e(id){
  $northern(id).style.display = 'block';	
}

function submit_newsletter(id_email,id){
	  
	  if(check_email(document.getElementById(id_email).value)){
		  show_e(id);
		  hide_e1('news_des');
	  }
	  
}

function check_email(mail) {
       var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
       if (filter.test(mail)) return true;
         else { return false;}
}
	


function CoLeeSelect(thisObj){   // contact us

 var thisinput = thisObj.getElementsByTagName("input");
 var thisul = thisObj.getElementsByTagName("ul");
 var thisli = thisul[0].getElementsByTagName("li");
 if(thisObj.id != "CoLeeSelect"){
  thisObj.id = "CoLeeSelect";
  thisObj.focus();
  thisul[0].style.display = "block";
  for(var i=0;i<thisli.length;i++){
   thisli[i].onmouseover = function(){
    for(var j=0;j<thisli.length;j++){
     thisli[j].className = "";
     }
    this.className = "highlight";
    }
   thisli[i].onclick = function(){
    if(this.innerText)thisinput[0].value = this.innerText;
	if(this.textContent)thisinput[0].value = this.textContent;
	if( thisinput[0].value.charAt(thisinput[0].value.length-1) == " ") thisinput[0].value =  thisinput[0].value.substr(0,  thisinput[0].value.length-1);//ie7�»�ĩβ��һ���ո񣬴˴��ѿո�ȥ��
	/*if( thisinput[0].value!='Please select...') {
		thisinput[0].className = 'nav_select_s';
		if(this.id=='pro1'){temp1='';temp1=this.getAttribute("urlkey");}
		if(this.id=='pro2'){temp2=this.getAttribute("pro"); temp3=this.getAttribute("cat");}
		
	
		}
	
	   else  { thisinput[0].className = 'nav_select';}*/
    }
   }
  }else{
   ObjBlur();
  }
  thisObj.onblur = ObjBlur;
  function ObjBlur(){
   thisObj.id =  "";
   thisul[0].style.display = "none";
   thisObj.blur();
   }
 }
 
 
 /**************** pop up position -- left right*******************/
 
<!--
var winWidth = 0;
var winHeight = 0;
function findDimensions() //�����ȡ�ߴ�
{
//��ȡ���ڿ��
if (window.innerWidth)
winWidth = window.innerWidth;
else if ((document.body) && (document.body.clientWidth))
winWidth = document.body.clientWidth;
//��ȡ���ڸ߶�
if (window.innerHeight)
winHeight = window.innerHeight;
else if ((document.body) && (document.body.clientHeight))
winHeight = document.body.clientHeight;
//ͨ������Document�ڲ���body���м�⣬��ȡ���ڴ�С
if (document.documentElement  && document.documentElement.clientHeight && document.documentElement.clientWidth)
{
winHeight = document.documentElement.clientHeight;
winWidth = document.documentElement.clientWidth;
}
//�������������ı���

}
findDimensions();
//���ú����ȡ��ֵ
window.onresize=findDimensions; 
//-->

function pop_up(w,h,id){
	WLeft_f2   =   Math.ceil((winWidth   -   w)   /   2  );
    WTop_f2   =   Math.ceil((winHeight   -   h)   /   2   ); 
	if(WTop_f2<0) WTop_f2=10;
	obj_f2 = document.getElementById(id);
    obj_f2.style.left = WLeft_f2 +"px";
    obj_f2.style.top =WTop_f2 +"px";	
}
