/* author: Ovidiu Sopa */
/* Creation date: 23.11.2004 */
function confirmLink(theLink, theSqlQuery)
{
    // Confirmation is not required in the configuration file
    if (confirmMsg == '') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
    if (is_confirmed) {
        theLink.href += '&is_js_confirmed=1';
    }

    return is_confirmed;
}


function high(id)
{
document.getElementById(id).className='high'}
function low(id)
{
document.getElementById(id).className='low'}
function highx2(id)
{
//nextid = ++id;
//alert(nextid +'-'+ id)
document.getElementById(id).className='high';
id++ ;
document.getElementById(id).className='high';
}
function lowx2(id)
{

document.getElementById(id).className='low';
id++ ;
document.getElementById(id).className='low';
}


function detshow(idnum)
{
	if(document.getElementById){
		if(document.getElementById("prod"+idnum)){
			var elem = document.getElementById("prod"+idnum);
			
			//var hdr = document.getElementById("faqHeader"+idnum)
			if(elem == null) { 
			
			return; }
			if(elem.style.display == "none")
			{
				//if(hdr != null)	{	hdr.className="faqHeaderOpen";	}
				elem.style.display = "";
				if(document.getElementById("sagj"+idnum)){document.getElementById("sagj"+idnum).style.display = "none";}
				if(document.getElementById("sags"+idnum)){document.getElementById("sags"+idnum).style.display = "";}
			}
			else
			{
				elem.style.display = "none";
				//if(hdr != null)	{	hdr.className="faqHeaderClosed";	}
				if(document.getElementById("sagj"+idnum)){document.getElementById("sagj"+idnum).style.display = "";}
				if(document.getElementById("sags"+idnum)){document.getElementById("sags"+idnum).style.display = "none";}
			}
		}
		window.event.cancelBubble = true;
		return false;
	}
}


function open_window(link, width, height)
{
     window.open(link,"","toolbar=0,top=0,scrollbars=yes, width="+width+",height="+height+"");
}