function sms(code) {
	w = 460;
	h = 570;
	l = (screen.width - w) / 2;
	t = (screen.height - h) / 3;
wh=window.open(code,"order", "width="+w+",height="+h+",left="+l+",top="+t);
wh.focus();
}

function sms_email(code) {
	w = 360;
	h = 420;
	l = (screen.width - w) / 2;
	t = (screen.height - h) / 3;
wh=window.open(code,"order", "width="+w+",height="+h+",left="+l+",top="+t);
wh.focus();
}

function NewShow(code,w,h) {
	l = (screen.width - w) / 2;
	t = (screen.height - h) / 3;
wh=window.open(code,"", "width="+w+",height="+h+",left="+l+",top="+t);
wh.focus();
}

function SetCookie(name,value,expire) {   
     var exp  = new Date();   
     exp.setTime(exp.getTime() + expire);   
     document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString()+";path=/";   
}   
   
function getCookie(name) {   
     var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));   
     if(arr != null) return unescape(arr[2]); return null;   
}
