function jsWindow(vName,vValue,vFeatures,vIsHTML) {
if(vFeatures == '') {
vFeatures = ""
+ "toolbar=1"
+ ",location=0"
+ ",scrollbars=1"
+ ",resizable=1"
+ ",directories=0"
+ ",status=0"
+ ",width=320"
+ ",height=240"
}
if(vIsHTML) {
//Format HTML, adding the close method of the window object.
vValue = "<HTML>\\n"
+ "<CENTER>\\n<BR><BR>\\n"
+ "<HEAD><TITLE>Songhay System</TITLE></HEAD>\\n"
+ vValue
vValue += "\\n<FORM><INPUT TYPE=button VALUE=\\"Close\\""
+"OnClick=\\"window.close()\\"></FORM>"
vValue += "\\n</CENTER>\\n</HTML>"
//Open window.
vWindow = window.open('', vName, vFeatures)
with(vWindow.document) {
write(vValue)
close()
}
}
else {
//Open window.
vWindow = window.open(vValue, vName, vFeatures)
}
}