// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always'>"+
	"<param name='movie' value='"+url+"'>"+
	"<param name='FlashVars' value='"+vars+"'>"+
	"<param name='wmode' value='"+win+"'>"+
	"<param name='menu' value='false'>"+
	"<param name='quality' value='high'>"+
	"<param name='bgcolor' value='"+bg+"'>"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}


/////// IE ¾÷±×·¹ÀÌµå Àû¿ë

function __ws__(id){
document.write(id.text);id.id='';
}

//¹®ÀÚÅ¸ÀÔ Ã¼Å©

///////////////////////////////////////////////////////////////////////////

var NUM = "0123456789"; 
var SALPHA = "abcdefghijklmnopqrstuvwxyz";
var ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"+SALPHA;
var SPACE = " ";
var N_ALPHA = NUM + ALPHA;

////////////////////////////////////////////////////////////////////////////////
function TypeCheck (s, spc) {
var i;

for(i=0; i< s.length; i++) {
if (spc.indexOf(s.substring(i, i+1)) < 0) {
return false;
}

}        
return true;
}

////////////////////////////////////////////////////////////////////////////////


//»õÃ¢¶ç¿ì±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//¿ìÆí¹øÈ£Ã£±â
function OpenZipcode() {
window.open('../../pack/zipcode/zipcode.php?form=WriteForm&address=address&zip1=zip1&zip2=zip2','zip_win','width=460,height=550,statusbar=no,scrollbars=yes,toolbar=no');
}


//¿ìÆí¹øÈ£Ã£±â
function OpenZipcode2() {
window.open('../../pack/zipcode/zipcode.php?form=WriteForm&address=address2&zip1=zip12&zip2=zip22','zip_win','width=460,height=550,statusbar=no,scrollbars=yes,toolbar=no');
}


//Á¤¸»»èÁ¦ ÇÒ·¡¿ä
function really(){
if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î? »èÁ¦´Â º¹±¸°¡ ºÒ°¡´ÉÇÕ´Ï´Ù.')) return true;
return false;
}


//////////////////////////////////  »óÇ°°ü¸®ÀÚ¿ë
//Æ÷Åä°¶·¯¸® ¿¬°á
function FindPHOTO(gr,cate) {
window.open('./photo_find.php?gr='+gr+'&cate='+cate,'photo_win','width=480,height=550,statusbar=no,scrollbars=yes,toolbar=no');
return;
}

//È£ÅÚ¿¬°á
function FindHOTEL(gr,cate1,cate2,htype) {
window.open('./hotel_find.php?gr='+gr+'&cate1='+cate1+'&cate2='+cate2+'&htype='+htype,'hotel_win','width=520,height=550,statusbar=no,scrollbars=yes,toolbar=no');
return;
}

//°ñÇÁÀå ¿¬°á
function OpenGOLF() {
window.open('./golf_list.php?form=WriteForm&goods_photo=goods_photo','photo_win','width=460,height=550,statusbar=no,scrollbars=yes,toolbar=no');
return;
}

//¼±ÅÃ°ü±¤
function OpenCHOICE() {
window.open('./golf_list.php?form=WriteForm&goods_photo=goods_photo','photo_win','width=460,height=550,statusbar=no,scrollbars=yes,toolbar=no');
return;
}

//¼îÇÎÁ¤º¸
function OpenSHOPPING() {
window.open('./golf_list.php?form=WriteForm&goods_photo=goods_photo','photo_win','width=460,height=550,statusbar=no,scrollbars=yes,toolbar=no');
return;
}


//ÀÏÁ¤Ç¥ ¹Ì¸®º¸±â
function OpenSCH(gcd,view) {
window.open('./sch_preview.php?viewType='+view+'&gcd='+gcd,'PREVIEW','width=720,height=550,statusbar=no,scrollbars=yes,toolbar=no');
return;
}

//ÀÌ¹ÌÁö Å©±â ¸¸Å­ À©µµ¿ì »õÃ¢¶ç¿ì±â//////////////////////////

function CaricaFoto(img){ 
foto1= new Image(); 
foto1.src=(img); 
Controlla(img); 
} 
function Controlla(img){ 
if((foto1.width!=0)&&(foto1.height!=0)){ 
viewFoto(img); 
} 
else{ 
funzione="Controlla('"+img+"')"; 
intervallo=setTimeout(funzione,20); 
} 
} 

function viewFoto(img){ 
largh=foto1.width+20; 
altez=foto1.height+20; 
stringa="width="+largh+",height="+altez; 
finestra=window.open(img,"",stringa); 
} 

////////////////////////////////////////////////////////////////

