function popup(url, w, h) {
	if (w == null) {
		w = 1024;
	}
	if (h == null) {
		h = 768;
	}
	props = 'resizable=yes,scrollbars=yes,width=' + w + ',height=' + h;
	hw = open(url, 'popup', props);
	hw.moveTo(100,100);
}

function checkCode() {
	a = document.scform.code.value;
	x=a*1;
	if ((x>=3100 && x<=3199)||(x>=4200 && x<=4299) ||(x>=6200 && x<=6499)||(x>=7200 && x<=7299) || (x>=30000)){
		this.location = "/ch/cbbc/cbbc_price_c.cgi?code=" + x;
	} else if (x>=9000){
		this.location = "/ch/warrants/warrants_price_c.cgi?code=" + x;
	} else {
		this.location = "/ch/listco/new_quote_c.cgi?code=" + a;
	}
}

function setUID(uid) {
	if (!document.getElementById || !document.getElementsByTagName)
		return false;
	uidElement = document.getElementById("uid");
	uidElement.innerHTML = uid;
	return true;
}

function getUID(uid) {
	if (!document.getElementById || !document.getElementsByTagName)
		return '';
	uidElement = document.getElementById("uid");
	return uidElement.innerHTML;
}