
if (top.frames.length != 2){
	document.location.href = "/default_ref.aspx?key="+ replaceChr(replaceChr(document.location.href,'?','^'),'&','!');
}


// ¹®ÀÚ Ä¡È¯
function replaceChr(str,orgchr,chgchr) {
	var tmpStr="";
	var i = 0,  ch = "";
	for (i; i < str.length; i++) {
		ch = str.charAt(i);
		
		if (ch == orgchr) 
			tmpStr = tmpStr + chgchr;
		else  
			tmpStr = tmpStr + ch;
	}
	return tmpStr;
}