// This file belong to the portal
function openSmallwin(href)
         {
                 var winInst=null;
                 var agt=navigator.userAgent.toLowerCase();
                 var is_ie=(agt.indexOf("msie") != -1);
                 winInst = window.open("","name1","scrollbars,resizable,menubar,toolbar=yes,location=yes,status=yes,width=600,height=250,top=60,left=60");
                 winInst.location.href = href;
                 if (is_ie) {
                    winInst.moveTo(60,60);      // was: (240,220)
                    //winInst.resizeTo(700,340);  //was:(550,300)
                  }
                 winInst.focus();
         }

function  writeHebAdminHeader () {

document.write('<head>');
document.write('<title>Portal Managing Page</title>');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');

document.write('<link href="/css/admin.css" rel="stylesheet" type="text/css">');

document.write('</head>');

document.write('<body>');
document.write('<div dir="rtl">');
document.write('<table width="100%" height="132" border="0" cellpadding="0" cellspacing="0">');
document.write('  <tr>');
document.write('    <td width="242" height="99" align="left" valign="top" background="/img/a_bc.gif"><img src="/img/heb_a_top.jpg" width="242" height="99"></td>');
document.write('    <td width="352" height="99" align="left" valign="top" background="/img/a_bc.gif"><img src="/img/heb_a_title.gif" width="352" height="99"></td>');
document.write('    <td width="100%" height="99" align="right" valign="top" background="/img/a_bc.gif"><img src="/img/spacer.gif" width="1" height="99"></td>');
document.write('        <td width="108" height="99" align="right" valign="top" background="/img/a_bc.gif"><img src="/img/heb_a_wis.gif" width="108" height="99"></td>');
document.write(' </tr>');
document.write('  <tr>');
document.write('    <td width="242" height="33" align="left" valign="top"><img src="/img/heb_a_top_b.jpg" width="242" height="33"></td>');
document.write('    <td height="33" colspan="3" align="right" valign="top"><img src="/img/spacer.gif" width="1" height="33"></td>');
   
document.write('  </tr>');
document.write('</table>');
document.write('</div>');
}

function  writeAdminHeader () {

document.write('<head>');
document.write('<title>Portal Managing Page</title>');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');

document.write('<link href="/css/admin.css" rel="stylesheet" type="text/css">');

document.write('</head>');

document.write('<body>');
document.write('<table width="100%" height="132" border="0" cellpadding="0" cellspacing="0">');
document.write('  <tr>');
document.write('    <td width="242" height="99" align="left" valign="top" background="/img/a_bc.gif"><img src="/img/a_top.jpg" width="242" height="99"></td>');
document.write('    <td width="352" height="99" align="left" valign="top" background="/img/a_bc.gif"><img src="/img/a_title.gif" width="352" height="99"></td>');
document.write('    <td width="100%" height="99" align="right" valign="top" background="/img/a_bc.gif"><img src="/img/spacer.gif" width="1" height="99"></td>');
document.write('        <td width="108" height="99" align="right" valign="top" background="/img/a_bc.gif"><img src="/img/a_wis.gif" width="108" height="99"></td>');
document.write(' </tr>');
document.write('  <tr>');
document.write('    <td width="242" height="33" align="left" valign="top"><img src="/img/a_top_b.jpg" width="242" height="33"></td>');
document.write('    <td height="33" colspan="3" align="right" valign="top"><img src="/img/spacer.gif" width="1" height="33"></td>');
   
document.write('  </tr>');
document.write('</table>');
}



//winInst.close();

function openPopWin(winDocFile)
	 { 
          var winInst=null;
	  if((!winInst)||(winInst.closed==true))
	 	{
		 features = 'toolbar,menubar=yes,scrollbars,resizable,status=no,directories=no';
		 features += ',width=' + xlen + ',height=' + ylen ; 
		 features += ',top=' + y + ',left=' + x ; 
	  	 winInst = window.open(winDocFile,"name1",features);
		 winInst.focus();
	 	}	 
	  else
		{
		  if(winInst.document!=winDocFile)
		  {
		  	winInst = window.open(winDocFile,"name1")
		 	winInst.focus();
		  }
		}
	 // cover all remianed cases	 
      winInst.focus();
	 }


function WriteButton(action,title)
    { 
    document.write('<SCRIPT TYPE="text/javascript">');
    document.write('  function redirect(){');
    document.write('    window.location.href="' + action + '";');
    document.write('  }');
    document.write('</SCRIPT>');
    document.write('<style type="text/css">');
    document.write('<!--');
    document.write('.button {');
    document.write('        color: #272d34;');
    document.write('        font-family: Arial, Helvetica, sans-serif;');
    document.write('        font-size: small;');
    document.write('}');
    document.write('-->');
    document.write('</style>');
    document.write('<table  border="0" cellspacing="0" cellpadding="0">');
    document.write('  <tr onClick="redirect();">');
    document.write('    <td width="18" height="25" align="right" valign="top"><img src="/img/butt_l.gif" width="18" height="25"></td>');
    document.write('    <td background="/img/butt_bc.gif">');
    document.write('      <div align="center"><span class="button">' + title + '</span></div>');
    document.write('    </td>');
    document.write('    <td width="18" height="25" align="left" valign="top"><img src="/img/butt_r.gif" width="18" height="25"></td>');
    document.write('  </tr>');
    document.write('</table>');
    }
// Disable  right click. Trap it for images
function right(e) {
var msg = "Sorry, you don't have permission to right-click.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) 
{
alert(msg);
return false;
}
else return true;
}

function trap()
{
if(document.images)
{
for(i=0;i<document.images.length;i++)
{
document.images[i].onmousedown = right;
document.images[i].onmouseup = right;
}
}
}

	
	
var message="Function Disabled";   //edit this message to say what you want

function clickIE() {if (document.all) {alert(message); return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers) 
{document.images.captureEvents(Event.MOUSEDOWN);document.images.onmousedown=clickNS;}
else{document.images.onmouseup=clickNS;document.images.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

