//facebox
jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox()
})

//clear input element if value
function doClear(elem){
    if(elem.value == elem.defaultValue){
        elem.value = "";
    }
}

function limitText(limitField, limitNum) {
    if (limitField.value.length > limitNum) {
        limitField.value = limitField.value.substring(0, limitNum);
    } 
}

// not sure?!

var WindowObjectReference = null; // global variable

function openRequestedSinglePopup(strUrl,width,height) {

	if(!width) width=750;
	if(!height) height=550;
	
   WindowObjectReference = window.open(strUrl, "SingleSecondaryWindowName",
      "width="+width+",height="+height+",resizable=no,scrollbars=no,status=no");

   WindowObjectReference.focus();

}

function set_display(id,dis){
	document.getElementById(id).style.display=dis;
}