function showCompare(){
    window.location = "main.php?page=19";
}

function showAgreement() {
	var to_open = window.open("read_disclaimer.html","Terms_of_agreement","status=0,height=600,width=600,resizable=0,scrollbars=yes");
	if (!to_open) {
      alert('You have a popup blocker enabled.');
	}
}

function showDocumentation(doc_id) {
	var to_open = window.open("parser.php"+doc_id,"Documentation","status=0,height=500,width=700,resizable=0,scrollbars=yes");
	if (!to_open) {
	    alert('You have a popup blocker enabled.');
	}
}

function showPrivacyPolicy() {
	var to_open = window.open("privacy_policy.html","Privacy_policy","status=0,height=450,width=500,resizable=0,scrollbars=yes");
	if (!to_open) {
      alert('You have a popup blocker enabled.');
	}
}

function showNewWin(url, title, winh, winw) {
	var to_open = window.open(url,"title","status=0,height="+winh+",width="+winw+",resizable=0,scrollbars=yes");
	if (!to_open) {
	    alert('You have a popup blocker enabled.');
	}
}

function changeBackground(objID,bgval) {
            if (bgval== 1)
            {
                document.getElementById(objID).style.backgroundImage = "url(images/glossyback2_b.gif)";
            }
            else
            {
                document.getElementById(objID).style.backgroundImage = "url(images/glossyback_a.gif)";
            }
}