function roll(st,color) {
idx=eval(st);
idx.style.backgroundColor=color;
}
///////// ÀÚµ¿¸µÅ© /////////////////////////////////////////////////////////////////////
function autolink( id )
{
//alert(id);
var container = document.getElementById(id);
var doc = container.innerHTML;
var regSRC = new RegExp("(src|href)=(\'|\")(http|https|ftp|telnet|news|irc)://([-/.a-zA-Z0-9_~#%$?&=:200-377();|°¡-ÆR]+)","gi");
var regURL = new RegExp("(http|https|ftp|telnet|news|irc)://([-/.a-zA-Z0-9_~#%$?&=:200-377();|°¡-ÆR]+)","gi");
var regEmail = new RegExp("([_a-z0-9]+[_a-z0-9+-]+@[a-z0-9+-]+\.[a-z0-9+-]+[\.a-z0-9+-]+)","gi");
doc = doc.replace(regSRC,"$1=$2donelink://$4");
doc = doc.replace(regURL,"$1://$2");
doc = doc.replace(regEmail,"$1");
container.innerHTML = doc.replace( /donelink/gi, 'http' );
}
function alertID()
{
for(i = 0; i < document.all.length; i++)
if( document.all[i].id != "" ) alert(document.all[i].id);
}
///////////////////////// ÀÚµ¿¸µÅ© //////////////////////////////////////////////////////////
// setCookie
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/;"
}
// getCookie
function t_getCookie(name){
var arg = name + "=";
var alen = arg.length;
var clen=document.cookie.length;
var i=0;
while(i< clen){
var j = i+alen;
if(document.cookie.substring(i,j)==arg){
var end = document.cookie.indexOf(";",j);
if(end== -1)
end = document.cookie.length;
return unescape(document.cookie.substring(j,end));
}
i=document.cookie.indexOf(" ",i)+1;
if (i==0) break;
}
return null;
}
function t_setCookie(name,value,expires){
document.cookie=name + "=" + escape(value)+
((expires == null)? "" : (" ; expires=" + expires.toGMTString()));
}
function t_setcookieVariables(){
var today = new Date();
var expires=new Date();
expires.setTime(today.getTime()+ 1000*60*60*24*365);
setCookie("news_title","",expires)
}
function imgView(no,fld) {
//alert('ÄíÄí');
browsing_window = window.open('index_pop.php?incf=product/imgView&fld='+fld+'&no='+no, 'browse_org', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=300, height=300');
browsing_window.focus();
return;
}
function orderOpen(ono,no){
var browzing=window.open('index_pop.php?incf=order/order_detail2&ono='+ono+'&no='+no, '' , 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=800,height=400');
browzing.focus();
return;
}
function flashWrite(url,width,height){
// Ç÷¡½Ã ÄÚµå Á¤ÀÇ
var flashStr=
"";
// Ç÷¡½Ã ÄÚµå Ãâ·Â
document.write(flashStr);
}
function goUrl(url) {
if (url) window.open(url);
}
function multSearch() {
var form=eval(document.searchOther);
if ( form.searchText.value !='' ) {
var check=false;
for ( i=1 ; i <= 8 ; i ++ ) {
if ( form.elements[i].checked ) {
window.open(form.elements[i].value+form.searchText.value);
check=true;
}
}
if ( !check ) alert('°Ë»öÇÒ °Ë»ö¿£ÁøÀ» ¼±ÅÃÇÏ½Ã±æ ¹Ù¶ø´Ï´Ù.');
}else {
alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ½Ã°í °Ë»öÇϼ¼¿ä');
form.searchText.focus();
}
return false;
}
function AllCheck(){
var form=eval(document.searchOther);
for ( i=1 ; i <= 8 ; i ++ ) {
form.elements[i].checked = true;
}
return;
}
function logout(mem){
var chk=confirm(mem+'´Ô ·Î±×¾Æ¿ô ÇϽðڽÀ´Ï±î?');
if ( chk ) swap.location.href=('query/log.php?qmode=logout');
return;
}
function clearField(field){
if (field.value == field.defaultValue) field.value = '';
}
function checkField(field){
if (field.value == '') field.value = field.defaultValue;
}
///// ȸ¿øÁ¤º¸¼öÁ¤..
function myinfo() {
form=eval("document.modify");
if ( form.pass.value && form.pass2.value ) {
if ( form.pass.value != form.pass2.value ) {
alert('º¯°æÇÒ ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ ÇÏÁö ¾Ê½À´Ï´Ù.');
form.pass2.focus();
return false;
}
}
if ( form.pass.value && !form.pass2.value ) {
alert('Æнº¿öµå¸¦ º¯°æÇϽ÷Á¸é ´Ù½ÃÇѹø È®ÀÎ ºñ¹Ð¹øÈ£¸¦ ³Ö¾îÁÖ½Ã±æ ¹Ù¶ø´Ï´Ù.');
form.pass2.focus();
return false;
}
if ( !form.pass.value && form.pass2.value ) {
alert('º¯°æÇÒ Æнº¿öµå¸¦ ³ÖÀ¸½Ã±æ ¹Ù¶ø´Ï´Ù.');
form.pass.focus();
return false;
}
if ( !form.addz.value ) {
alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ½Ã±æ ¹Ù¶ø´Ï´Ù');
form.addz.focus();
return false;
}
if ( !form.bank1.value ) { alert('°èÁÂÁ¤º¸¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä.'); form.bank1.focus(); return false; }
if ( !form.bank2.value ) { alert('°èÁÂÁ¤º¸¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä.'); form.bank2.focus(); return false; }
if ( !form.bank3.value ) { alert('°èÁÂÁ¤º¸¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä.'); form.bank3.focus(); return false; }
return true;
}