//-- Exhibitions-Private
function zc_film(){
	thisForm=document.zc_film_form;
	
	if(!thisForm.zcfm_id.value){
		alert("Please enter your ID");
		thisForm.zcfm_id.focus();
		return false;
	} else if(!thisForm.zcfm_pw.value){
		alert("Please enter your Password");
		thisForm.zcfm_pw.focus();
		return false;
	} else {
		return true;
	}
}

//-- E-mail ¼öÁý Bottom 
function emailChk() {
	if(document.email_form.email.value==0) {
		alert("Please insert your E-mail");
		document.email_form.email.value='';
		document.email_form.email.focus();
		return false;
	} else if(document.email_form.email.value=='Enter E-mail to join our email list') {
		alert("Please insert your E-mail");
		document.email_form.email.value='';
		document.email_form.email.focus();
		return false;
	} else if(document.email_form.email.value.indexOf('zonechelsea') > -1) {
		alert("Can't insert any text about zonechelsea");
		document.email_form.email.focus();
		return false;
	} else if(document.email_form.email.value.indexOf("@",0)==-1) {		
		alert("Wrong E-mail format");
		document.email_form.email.select();
		return false;
	} else if(document.email_form.email.value.indexOf(".",0)==-1) {
		alert("Wrong E-mail format");
		document.email_form.email.select();
		return false;
	} else if(document.email_form.email.value.indexOf(' ') > -1) {
		alert("Don't need any space");
		document.email_form.email.focus();
		return false;
	}
}

//-- Mailing List
function mailingChk() {
	if(document.mailing_form.f_email.value==0) {
		alert("Please insert your E-mail");
		document.mailing_form.f_email.value='';
		document.mailing_form.f_email.focus();
		return false;
	} else if(document.mailing_form.f_email.value.indexOf('zonechelsea') > -1) {
		alert("Can't insert any text about zonechelsea");
		document.mailing_form.f_email.focus();
		return false;
	} else if(document.mailing_form.f_email.value.indexOf("@",0)==-1) {		
		alert("Wrong E-mail format");
		document.mailing_form.f_email.select();
		return false;
	} else if(document.mailing_form.f_email.value.indexOf(".",0)==-1) {
		alert("Wrong E-mail format");
		document.mailing_form.f_email.select();
		return false;
	} else if(document.mailing_form.f_email.value.indexOf(' ') > -1) {
		alert("Don't need any space");
		document.mailing_form.f_email.focus();
		return false;
	}
}

//-- E-mail Á¦°Å
function emailremChk() {
	if(document.emailrem_form.emailrem.value==0) {
		alert("Please insert your E-mail");
		document.emailrem_form.emailrem.value='';
		document.emailrem_form.emailrem.focus();
		return false;

	} else if(document.emailrem_form.emailrem.value.indexOf('zonechelsea') > -1) {
		alert("Can't insert any text about zonechelsea");
		document.emailrem_form.emailrem.focus();
		return false;
	} else if(document.emailrem_form.emailrem.value.indexOf("@",0)==-1) {		
		alert("Wrong E-mail format");
		document.emailrem_form.emailrem.select();
		return false;
	} else if(document.emailrem_form.emailrem.value.indexOf(".",0)==-1) {
		alert("Wrong E-mail format");
		document.emailrem_form.emailrem.select();
		return false;
	} else if(document.emailrem_form.emailrem.value.indexOf(' ') > -1) {
		alert("Don't need any space");
		document.emailrem_form.emailrem.focus();
		return false;
	}
}

//-- Search
function searchChk() {
	if(document.search_form.search.value==0) {
		alert("Please insert text to search");
		document.search_form.search.value='';
		document.search_form.search.focus();
		return false;
	} else if(document.search_form.search.value=="Search") {
	alert("Please insert text to search");
	document.search_form.search.value='';
	document.search_form.search.focus();
	return false;
	}
}

//-- ÀÌ¸ÞÀÏµî·Ï¿Ï·á
function emailComp() {
	alert("To registration completed!");
	return false;
}

//-- ShopÆË¾÷
var newwin;
function launchwin(winurl,winname,winfeatures)
{
	//This launches a new window and then
	//focuses it if window.focus() is supported.
	newwin = window.open(winurl,winname,winfeatures);
	if(javascript_version > 1.0)
	{
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
 		setTimeout('newwin.focus();',250);
	}
}