function initsize() 
{ 
	bbs.resizeTo(bbs.document.body.scrollWidth, bbs.document.body.scrollHeight); 
}

function linkbutton2(url) {
        window.open(url, "vote_result", "width=500,height=500");
}
function linkbutton(url, width, height) {
    if(url=='backward') {
        history.back(1);
	}
    else {
		var style = "width="+width+",height="+height+",scrollbars=yes,resizable=yes";
        window.open(url, "popup_win", style);
	}
}

function checkform() {
   var obj; 
    var flag; 
     
	obj = document.vote.elements;
	flag = false;         

	for (var j = 0; j < obj.length; j++) { 
		if(obj[j].type == 'radio' || obj[j].type == 'checkbox')
		{
			if (obj[j].checked == true) { 
				flag = true; 
				break; 
			} 
		}
	} 

	if (flag == false) { 
		alert("설문을 체크해주세요."); 
		return false; 
	} 
    return true; 
}

function checkform_login() {
	if(!login.id.value) {
		alert('아이디를 입력해 주세요.');
		login.id.focus();
		return false;
	}
	if(!login.passwd.value) {
		alert('비밀번호를 입력해 주세요.');
		login.passwd.focus();
		return false;
	}
	return true;
}

