<!--
/**
 * Login
 */
function __LoginForm(f) {
	
	var form = eval("document." + f);
	if(form.id.value == "") {
		alert("아이디를 입력하세요");
		form.id.focus();
		return false;
	}
	
	if(form.pw.value == "") {
		alert("비밀번호를 입력하세요");
		form.pw.focus();
		return false;
	}
	return true;
}


function paymentPopup(productsUid, paymentType, uid) {
	var type = "";
	if(paymentType == "board") {
		type = "boardUid";
	} else if(paymentType == "application") {
		type = "applicationSuccessUid";
	}
	var ref = "/popup/payment.db?paymentProductsUid=" + productsUid + "&" + type + "=" + uid;
	window.open(ref, 'payment_popup', 'width=600,height=350,status=0,scrollbars=0');
}



function Installed() {
	try {
		return (new ActiveXObject('IEPageSetupX.IEPageSetup'));
	} catch (e) {
		return false;
	}	
}

function Rollback() {
	try {
		if (Installed()) IEPageSetupX.RollBack();
	} catch(e) {
	}	
}

function printMe(){
	if(Installed()) {
		IEPageSetupX.header = "";
		IEPageSetupX.footer = "";
		IEPageSetupX.Preview();
	} else {
		alert("컨트롤을 설치하지 않았네요.. 정상적으로 인쇄되지 않을 수 있습니다.");
	}
}

function printWindow() {
  factory.printing.SetMarginMeasure(2); // set inches
  factory.printing.header = "This is MeadCo";
  factory.printing.footer = "Printing by ScriptX";
  factory.printing.portrait = false;
  factory.printing.leftMargin = 1.0;
  factory.printing.topMargin = 1.0;
  factory.printing.rightMargin = 1.0;
  factory.printing.bottomMargin = 1.0;
  factory.printing.copies = 1;
  factory.printing.printBackground = true;
  factory.printing.Print(false);
  factory.printing.WaitForSpoolingComplete();
  // navigate or close browser here //
}




//.print = function() {
//	var txt = "<OBJECT id=IEPageSetupX classid='clsid:41C5BC45-1BE8-42C5-AD9F-495D6C8D7586' codebase='/IEPageSetupX.cab#version=1,3,0,2' style='width:0;height:0'>";
//	txt += "<param name='copyright' value='http://isulnara.com'>";
//	txt += "<div style='position:absolute;top:276;left:320;width:300;height:68;border:solid 1 #99B3A0;background:#D8D7C4;overflow:hidden;z-index:1;visibility:visible;'><FONT style='font-family: \"굴림\", \"Verdana\"; font-size: 9pt; font-style: normal;'><BR>&nbsp;&nbsp;인쇄 여백제어 컨트롤이 설치되지 않았습니다.&nbsp;&nbsp;<BR>&nbsp;&nbsp;<a href='/IEPageSetupX.exe'><font color=red>이곳</font></a>을 클릭하여 수동으로 설치하시기 바랍니다.&nbsp;&nbsp;</FONT></div>";
//	txt += "</OBJECT>";
//	document.write(txt);
//}
//









function loginTrue() {
	alert("이미 로그인 하셨습니다.");
	history.back();
}

function memberNotAuthrity(form) {
	
	var f = eval("document." + form);
	if(f.ipin.value == "n" && (f.memberName.value == "" || f.memberRrn1.value == "" || f.memberRrn2.value == "")) {
		alert("회원인증이 되지 않았습니다. 회원인증을 먼저 하셔야 합니다.");
		document.location.href = "/member.db?cmd=step1";
	}else if(f.ipin.value == "y" && (f.memberIpinVirtualno.value == "" || f.memberIpinDuplication.value == "" || f.memberIpinCoinfo1.value == "")) {
		alert("회원인증이 되지 않았습니다. 회원인증을 먼저 하셔야 합니다.");
		document.location.href = "/member.db?cmd=step1";
	}else if(f.ipin.value == ""){
		alert("회원인증이 되지 않았습니다. 회원인증을 먼저 하셔야 합니다.");
		document.location.href = "/member.db?cmd=step1";
	}	
}

//-->
