$(document).ready(function(){
	h = $('#left').height();
	h1 = $('#right').height();
	h2 = $('#center').height();
	if(h>h1)
		h3 = h;
	else
		h3 = h1
	if(h2<h3)
		$('#center').height(h3);
		
	h4 = $('#sub_right').height();
	if(h4<h) $('#sub_right').height(h);
	
});

function popup(str,w, h)
{
	a = ($(window).width()-w)/2;	
	b = ($(window).height()-h)/2;
	window.open(str,'','width='+w+',height='+h+',left='+a+',top='+b+', scrollbars=no');
}

function check(it)
{
	if (it.name.value==''){
		alert('Please input your name');
		it.name.focus();
		return false;
	}
	if (it.email.value==''){
		alert('Please input your email');
		it.email.focus();
		return false;
	}
	if (Check_Email(it.email.value)){
		alert("your email do not match!");
		it.email.focus();
		return false;
	}
}


function   Check_Email(string){     
	var   str_len   =   string.length;   
	if   (str_len<=5){   
		return   true   
		  }       
	for(i=0;i<str_len;i++){   
		  if   (string.charCodeAt(i)>127){   
	return   true     
	}   
	}   
	if   (string.indexOf("@")<2){   
		  return   true   
		  }       
				  if   (string.indexOf(".")==1){   
		  return   true   
		  }       
	if   (string.indexOf(":")!=-1){   
		  return   true   
	}   
} 
