<!-- //

// <tr> MouseOver
function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }

    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].bgColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function

function confirmLink(theLink, theADid)
{
    var is_confirmed = confirm('Do you really want to:\nDelete Id (' + theADid + ')');
    if (is_confirmed) {
        theLink.href;
    }

    return is_confirmed;
} // end of the 'confirmLink()' function

function selectOver(id)
{
    document.getElementById(id).style.background='#ffb6c1';
    document.getElementById(id).style.border='1px solid #C26A6C';
    document.getElementById(id).style.cursor='hand';
    window.status='Place a Ad in this Section';
} // end of the 'selectOver()' function

function selectOut(id)
{
    document.getElementById(id).style.background='#fafaff';
    document.getElementById(id).style.border='1px solid #c0d0e0';
    document.getElementById(id).style.cursor='pointer';
    window.status='';
} // end of the 'selectOut()' function

function changeTo(url)
{
    document.location.href='createad.php?place_in=' + url + '';
} // end of the 'changeTo()' function

var postmaxchars = 1000;

function validate(theform) {
	if (postmaxchars != 0) {
		if (theform.oads_text.value.length > postmaxchars) {
			alert("Your message is too long.\n\nReduce your message to 1000 characters.\nIt is currently "+theform.oads_text.value.length+" characters long.");
			return false; }
		else { return true; }
	} else { return true; }
} // end of the 'validate()' function

function checklength(theform) {
	if (postmaxchars != 0) { message = "\nThe maximum permitted length is 1000 characters."; }
	else { message = ""; }
	alert("Your message is "+theform.oads_text.value.length+" characters long."+message);
} // end of the 'checklength()' function

function showQV(slot) {
    return getItem[slot].desc;
}

// -->
