//·Î±×ÀÎ Ã¼Å©
function logincheck() {

	if(!logform.uid.value)	{
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		logform.uid.focus();
		return false;
		}

	if(!logform.upasswd.value){
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		logform.upasswd.focus();
		return false;
	}
}


function login_alert(){
	alert("·Î±× ÈÄ ¿¡ »ç¿ë °¡´É ÇÕ´Ï´Ù.");
	return false;
}

//¾ÆÀÌµð °Ë»ö Ã¢ 
function search_id(name) {
	ref = "../Include/id_search.php?name="+name;
	window.open(ref,'id_search','width=300,height=197,scrollbars=yes,left=500,top=300');
}



//»óÇ° ÀÌ¹ÌÁö ¹Ì¸®º¸±â ÆäÀÌÁö
function ProImgView(imgname,pcode) {	

	ref = "/product/zoom.html?imgname="+imgname+"&pcode="+pcode;
	window.open(ref, "preview", "toolbar=no,scrollbars=yes,status=no,resizable=yes,width=700,height=450,top=110,left=110");

}

//»óÇ° ÀÌ¹ÌÁö ¹Ì¸®º¸±â ÆäÀÌÁö
function ImgView(imgname,pcode) {	

	ref = ref = "../Binclude/pop_imgview.php?imgname="+imgname;
	window.open(ref, "preview", "toolbar=no,scrollbars=yes,status=no,resizable=yes,width=500,height=620,top=110,left=110");

}


//¾ÆÀÌµð ªO±â
function IdfindWin() {
	ref = "../Member/pop_idfinddate.php"
	window.open(ref,'id_search','width=321,height=238,scrollbars=no,left=500,top=300');
}

//ºñ¹øÃ£±â
function PwfindWin() {
	ref = "../Member/pop_pwfinddate.php"
	window.open(ref,'id_search','width=321,height=265,scrollbars=no,left=500,top=300');
}




//===== ¿À¸¥ÂÊ ¸¶¿ì½º ¸·´Â ½ºÅ©¸³Æ®½ÃÀÛ ======= //
/*
document.oncontextmenu = function(){return false}
if(document.layers) {
	window.captureEvents(Event.MOUSEDOWN);
	window.onmousedown = function(e){
		if(e.target==document)return false;
	}
}
else {
	document.onmousedown = function(){return false}
}
*/
//===== ¿À¸¥ÂÊ ¸¶¿ì½º ¸·´Â ½ºÅ©¸³Æ® ³¡ ======= //


function Popup_schinfo(theURL,winName,features) { //v2.0
//ÁÖ¼Ò, À©µµ¿ì ÀÌ¸§, Ã¢¿É¼Ç
  window.open(theURL,winName,features);
}






//ÇÃ·¡½¬ ¿¡¼­ »ç¿ëÇÏ´Â °æ°íÃ¢ÀÌ´Ù.
function MM_popupMsg(msg) {
  alert(msg);
}


//»óÇ°°Ë»ö ÇÏ±â
function ProsearchCheck(){

	if(!prosearchform.key.value){
		alert("°Ë»öÇÒ »óÇ°À» ÀÔ·ÂÇÏ¼¼¿ä");
		prosearchform.key.focus();
		return false;
	}

	return true;
}

//»óÇ°°Ë»ö ÇÏ±â
function ProsearchCheck2(){
	if(!prosearchform2.key2.value){
		alert("°Ë»öÇÒ ºê·£µå¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		prosearchform2.key2.focus();
		return false;
	}

	return true;
}
//»óÇ°°Ë»ö ÇÏ±â
function ProsearchCheck1(){

	if((selsearchform.mode1.value=="a" && selsearchform.mode2.value=="a" && selsearchform.mode3.value=="a" && selsearchform.mode4.value=="a")){
		alert("°Ë»öÇÒ »óÇ°À» ¼±ÅÃÇÏ¼¼¿ä");
		selsearchform.mode1.focus();
		return false;
	}

	return true;
}

//»óÇ°ÂòÇÏ±â 
function ZzimAdd(pcode,type) {

	ref = "../mypage/wishlist_ok.php?type="+type+"&pcode="+pcode;	
	ActFrame.location.href = ref;
}



//¸¶¿ì½º µå·¹±× ¸·±â

/*
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}


*/


function bookmark() { 
window.external.AddFavorite('http://kidsaroma.freewebclub.com', 'ºÏ¸¶Å©');
} 


//*********** ÆûÃ¼Å© ÇÔ¼ö ****************//
function trim( value )
{
	var ReturnValue = "";
	if( value == "" ) return false;
	for(i=0;i<value.length;i++)
	{
		if(value.charAt(i) != " ") ReturnValue = ReturnValue + value.charAt(i);
	}
	return ReturnValue;
}


function form_writeCheck(){
	var Msg;
	for (var i=0, I=signform.elements.length; i<I; i++){
		var form_ele = signform.elements[i];
		var form_value = form_ele.value;
		if(form_ele.Altval){
				if(form_ele.type == "select-one") Msg = "À»(¸¦) ¼±ÅÃÇØÁÖ¼¼¿ä.";
				else Msg = "À»(¸¦) ÀÔ·ÂÇÏ¼¼¿ä.";
				if (trim(form_value) =="" && !form_ele.chk_str){
					if(!form_ele.Altmsg2) alert(form_ele.Altmsg + "" + Msg);
					else alert(form_ele.Altmsg2+"");
					if (form_ele.type != "hidden") form_ele.focus();
					return false;
				}
		}
	}
	return true;
}
//*********** end ÆûÃ¼Å© ÇÔ¼ö ****************//



/************************************************
	temp1 ÀÌµ¿À» Ã¼Å©ÇÏ´Â ¼ýÀÚ
	temp2 ÆûÀÌ¸§
	temp3ÇöÀç input name
	temp4 ÀÌµ¿ÇÒ input name
*************************************************/
function next_move(temp1, temp2, temp3, temp4){ 

	var now_input = eval('document.'+temp2+'.'+temp3)
	var next_input = eval('document.'+temp2+'.'+temp4)
	
	if (now_input.value.length >= temp1){
		next_input.focus();
	}

}


function showhide(what,num) {

	if (what.style.display=='') {
		closewhide(what);
	return ;
	}



for(j=1;j>=30;j++) {
	if(j<=num) 
		menu_cont_+j+'.style.display=none';
}
	if (what.style.display=='none') {
		what.style.display='';
	}
	
}

//ÀÌ¿ëÈÄ±â ³»¿ë °¨Ãß±â
function closewhide(what) {
	what.style.display='none'; 
}


function addfavorites(){
	var favoriteurl="http://www.brotherkorea.com"
	var favoritetitle="ºê¶ó´õÄÚ¸®¾Æ";
	if (document.all)
	window.external.AddFavorite(favoriteurl,favoritetitle)
}


/* ======== end ¼±ÅÃÇÑ°Å »èÁ¦ÇÏ±â ============ */
function check(){
	var f = document.listform;

	for( var i = 0; i < f.elements.length; i++ ) {
		//f.elements[i].checked = document.all.allbox.checked;
		f.elements[i].checked = true;
	}

}

function check_no(){
	var f = document.listform;

	for( var i = 0; i < f.elements.length; i++ ) {
		f.elements[i].checked = false;
	}

}

//»óÇ° ÀÌ¹ÌÁö ¹Ì¸®º¸±â ÆäÀÌÁö
function ProImgView(imgname,pcode) {	

	ref = "/mall/zoom.html?imgname="+imgname+"&pcode="+pcode;
	window.open(ref, "preview", "toolbar=no,scrollbars=yes,status=no,resizable=yes,width=698,height=620,top=50,left=100");

}
//»óÇ° ÀÌ¹ÌÁö ¹Ì¸®º¸±â ÆäÀÌÁö
function ProImgView_new(imgname,pcode) {	

	ref = "/mall/zoom_new.html?imgname="+imgname+"&pcode="+pcode;
	window.open(ref, "preview", "toolbar=no,scrollbars=yes,status=no,resizable=yes,width=698,height=620,top=50,left=100");

}
