function sendcp(url){
	var cp = document.getElementById('cp').value;
	var obj = create_obj();
	obj.onreadystatechange = function(){
		if( (obj.readyState == 4) && (obj.status == 200) ){
			document.getElementById('ccco').innerHTML = obj.responseText;
		}else{
			document.getElementById('ccco').innerHTML = "wait...";
		}
	}
	if(obj){
		obj.open('GET', url + '?md=ajaxcp&cp=' + escape(cp), true);
		obj.send(null);
	}
}

function cnt(this_p){
	var obj = create_obj();
	if(obj){
		obj.open('GET', '../cnt/?p=' + escape(this_p), true);
		obj.send(null);
	}
}

function create_obj(){
	if(window.ActiveXObject){// for win.ie
		try{
			return new ActiveXObject("Msxml2.XMLHTTP");// for msxls2 or more
		}catch(e){
			try{
				return new ActiveXObject("Microsoft.XMLHTTP");// for msxls
			}catch(e2){
				return null;
			}
		}
	}else if(window.XMLHttpRequest){// for other browser that mounts XMLHttpRequest object
		return new XMLHttpRequest();
	}else{
		return null;
	}
}

