 function imag(im, w, h) {

refer = window.open("", "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width="+w+",height="+h+", top=50,left=50");


refer.document.write("<html><head><title></title><meta http-equiv=Content-Type content=text/html; charset=iso-8859-1><LINK href='c1.css' type=text/css rel=StyleSheet></head><body bgcolor=#ffffff topmargin=0 leftmargin=0 marginheigh=0 marginwidth=0 ><table width=100% border=0 cellspacing=0 cellpadding=0 height=100%><tr><td valign=center width=100%><img src="+im+"  ></td></tr> <tr><td valign=top id='nou' width=100% ><center><a href='javascript:window.close();'>Close</a></center></td></tr><tr><td height='5' width=100% ></td></tr></table></body></html>");

refer.document.close();
refer.focus();

}


function galexpl(im, w, h, t) {

refer = window.open("", "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width="+w+",height="+h+", top=50,left=50");


refer.document.write("<html><head><title></title><meta http-equiv=Content-Type content=text/html; charset=iso-8859-1><LINK href='c1.css' type=text/css rel=StyleSheet></head><body bgcolor=#ffffff topmargin=0 leftmargin=0 marginheigh=0 marginwidth=0 ><table width=100% border=0 cellspacing=0 cellpadding=0 height=100%><tr><td valign=center width=100%><img src="+im+" border=1 ></td></tr> <tr><td valign=top id='nou' width=100% ><center>"+t+"<br><a href='javascript:window.close();'>Close</a></center></td></tr><tr><td height='5' width=100% ></td></tr></table></body></html>");

refer.document.close();
refer.focus();

} 


<!-- Original:  Nannette Thacker -->
<!-- http://www.shiningstar.net -->
<!-- Begin
function checkNumeric(objName,minval, maxval,comma,period,hyphen)
{
	var numberfield = objName;
	if (chkNumeric(objName,minval,maxval,comma,period,hyphen) == false)
	{
		numberfield.select();
		numberfield.focus();
		return false;
	}
	else
	{
		return true;
	}
}

function chkNumeric(objName,minval,maxval,comma,period,hyphen)
{
// only allow 0-9 be entered, plus any values passed
// (can be in any order, and don't have to be comma, period, or hyphen)
// if all numbers allow commas, periods, hyphens or whatever,
// just hard code it here and take out the passed parameters
var checkOK = "0123456789" + comma + period + hyphen;
var checkStr = objName;
var allValid = true;
var decPoints = 0;
var allNum = "";

for (i = 0;  i < checkStr.value.length;  i++)
{
ch = checkStr.value.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
if (ch != ",")
allNum += ch;
}
if (!allValid)
{	
alertsay = "Introduceti doar valori numerice \""
alertsay = alertsay + checkOK + "\" la \"" + checkStr.name + "\" ceruta."
alert(alertsay);
return (false);
}

// set the minimum and maximum
var chkVal = allNum;
var prsVal = parseInt(allNum);
if (chkVal != "" && !(prsVal >= minval && prsVal <= maxval))
{
alertsay = "Introduceti o valoare mai mare sau  "
alertsay = alertsay + "egala cu \"" + minval + "\" si mai mica sau "
alertsay = alertsay + "egala cu \"" + maxval + "\" la \"" + checkStr.name + "\" ceruta."
alert(alertsay);
return (false);
}
}
//  End -->








function checkchar(objName)
{
	var numberfield = objName;
	if (chkchar(objName) == false)
	{
		numberfield.select();
		numberfield.focus();
		return false;
	}
	else
	{
		return true;
	}
}

function chkchar(objName)
{
// only allow 0-9 be entered, plus any values passed
// (can be in any order, and don't have to be comma, period, or hyphen)
// if all numbers allow commas, periods, hyphens or whatever,
// just hard code it here and take out the passed parameters
//var checkOK = "0123456789" + comma + period + hyphen;
var checkOK = "$&*[]();',=+/-";
var checkStr = objName;
var allValid = true;
var decPoints = 0;
var allNum = "";

for (i = 0;  i < checkStr.value.length;  i++)
{
ch = checkStr.value.charAt(i);

for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;

if (j != checkOK.length)
{
allValid = false;
break;
}

}
if (!allValid)
{	
alertsay = "Nu puteti introduce caractere speciale ";
alert(alertsay);
return (false);
}


}
//  End -->

