//로그인 체크
function logincheck() {

	if(!signform.uid.value)	{
		alert("IDを入力して下さい。");
		signform.uid.focus();
		return false;
		}

	if(!signform.upasswd.value){
		alert("パスワードを入力して下さい。");
		signform.upasswd.focus();
		return false;
	}
		signform.submit();
}


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 = "../shopping/zoom.php?imgname="+imgname+"&pcode="+pcode;
	window.open(ref, "preview", "toolbar=no,scrollbars=yes,status=no,resizable=yes,width=500,height=620,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");

}


//아이디 찿기
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 ZzimAdd(pcode,type) {

	ref = "/mypage/wishlist_ok.php?type="+type+"&pcode="+pcode;	
	//location.href=ref;
	window.open(ref,'zzimadd','width=200,height=200,top=200');
}



//마우스 드레그 막기

/*
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
}*/



