function openwindow(theURL,winName){
if (document.all&&event.keyCode==28)
//window.open(theURL,winName)
//myalert("soh");
openBrWindow (theURL,winName,'scrollbars=yes, resizable=yes, toolbar=yes, menubar=yes, status=yes, fullscreen=yes, location=yes','790','590');
}
var windowReference;
function openBrWindow(theURL,winName,features, windowWidth,windowHeight) { //v2.0
myleft=(screen.width)?(screen.width-windowWidth)/2:100;
	mytop=(screen.height)?(screen.height-windowHeight)/2:100;
	var center = features+",width="+windowWidth+",height="+windowHeight+", top="+mytop+",left="+myleft;
windowReference =  window.open(theURL,winName,center);
if (!windowReference.opener)
windowReference.opener = self;
//alert (mytop+" .... "+ myleft);
}
//function myalert(txt) {alert("nii"+txt);}

function snd (name, domain, end)
{
 window.location = "mailto:" + name + "@" + domain+"."+end;
}

function SetAllCheckBoxes(FormName, AreaID, CheckValue)
{
if(!document.forms[FormName])
return;
var objCheckBoxes = document.getElementById(AreaID).getElementsByTagName('input');
if(!objCheckBoxes)
return;
var countCheckBoxes = objCheckBoxes.length;
if(!countCheckBoxes)
objCheckBoxes.checked = CheckValue;
else
for(var i = 0; i < countCheckBoxes; i++)
objCheckBoxes[i].checked = CheckValue;
}