<!--
function toBuf(obj){
	var text_val=eval(obj);
	text_val.focus();
	text_val.select();
	if (!document.all) return; // IE only
	r=text_val.createTextRange();
	r.execCommand("copy");
	}
function hide(hide, display) {
	  var Table=document.getElementById('links');

	  for(var i=0;i<Table.rows.length;i++) {
		    Table.rows[i].cells[hide].style.display='none'; 
		    Table.rows[i].cells[display].style.display=''; 
	  }
}
window.aChecked = new Array();
function sortChecks(th, alr){
    var checks = document.getElementsByName(th);
    var length = checks.length;
    if(checks&&length){
        for(var i=0;i<length;i++){
            if(checks[i].checked){
               window.aChecked.push(checks[i]);
               }
        }
    return showValues(alr);
    }
}
function isSumPressed(_event) {
	var keynum;
	if (window.event) keynum = _event.keyCode;
	else if (_event.which) keynum = _event.which;
	if ((keynum < 48 || keynum > 57) && (keynum != 13) && (keynum != 46) && (keynum != 8)) return false;
	else return true;
}
function showValues(alr){
    var length = window.aChecked.length;
    if(length>0){
        var st = ""
        for(var i=0;i<length;i++){
            st+=window.aChecked[i].value+((i!=length-1)?', ':'');
        }
        return true;
    }
    else {
        alert(alr);
        return false;
    }
}

function disabledSelect() {
	  document.forms['results'].submit();
	  var selects=document.forms['results'].getElementsByTagName("SELECT");
	  for (loop=0; loop < selects.length; loop++){
	  sel=selects.item(loop).selectedIndex;
	  if (sel!=0) { 
	    selects.item(loop).options[sel].value = "0";
		selects.item(loop).disabled=true;
	  }
	}       
	return false;
	}

function CheckAll(field, bool){
	for (loop=0; loop < field.length; loop++){
		field[loop].checked = bool;
		}
	}

function submit_del(text){
	if (confirm(text)){ 
		return true;
		} 
	else {
		return false;
		}
	}

function SetCookie(cookieName,cookieValue,nDays) {
	var today = new Date();
	var expire = new Date();
	if (nDays==null || nDays==0) nDays=1;
	expire.setTime(today.getTime() + 3600000*24*nDays);
	document.cookie = cookieName+"="+escape(cookieValue)
	+ ";expires="+expire.toGMTString();
}
function ch_option() {
	c_option=document.pl_crt.c_option.value;
	if (c_option<2) c_option=2;
	SetCookie('c_option',c_option,1000);
	location.href='/publisher.php?action=publisher_place_create';
}


function show_hide_div(state,object) {
// alert(object);
if(state) { object.style.display="block"; }
else { object.style.display="none"; }
}


function open_new_window(url,w,h,scrollbars) {
winLeft = (screen.width-800)/2; 
winTop = (screen.height-720)/2; 
new_window = window.open(url,'my_window','scrollbars='+scrollbars+',toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width='+w+',height='+h+',left='+winLeft+',top='+winTop);
}

function go_to_delete(text,url) { if (confirm(text)) { location = url; } }

function checkAll(formId,cName,check) { for (i=0,n=formId.elements.length;i<n;i++) if (formId.elements[i].className.indexOf(cName) !=-1) formId.elements[i].checked = check; }

function preview_window(url)
{ newwindow=window.open(url,'preview_window','width='+(screen.availWidth-150)+',height='+(screen.availHeight-150)+',left=10,right=10,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,location=yes');
  newwindow.focus();
}

function getObject(obj) {
var theObj;
if(document.all)
{ if(typeof obj=="string") { return document.all(obj); } 
  else { return obj.style; }
}
if(document.getElementById)
{ if(typeof obj=="string") { return document.getElementById(obj); }
  else { return obj.style; }
}
return null;
}


-->
