function IsNullString(strValue) {
  var blnReturn = true;
  //check for white space: "[ \f\n\r\t\v]".
    for (i = 0; i < strValue.length; i ++) {
        character = strValue.charAt(i);
        if (!(character == " " || character == "\f" || character == "\n" || character == "\r" || character == "\t" || character == "\v")) {
            blnReturn = false;
            break;
        }
    }
    return blnReturn;
}

function selectopt(form, field, value){
var objName = eval('document.'+form+'.'+field);
var objLength = objName.length;
var thisValue
if (objLength != 0){
	for (i = 0; i < objLength; i++){
		thisValue = eval('objName.options['+i+'].value')
		if (thisValue == value){
			eval('objName.selectedIndex='+i);
			break;}}
	}
}

function openWindow(url,name,width,height,top,left){   
   var TagWin = null;
	 if (width == 0 || height == 0) {
		 var aWIDTH  = screen.width - 5;
		 var aHEIGHT = screen.height - 53;
	}
	else {
		 var aWIDTH  = width;
		 var aHEIGHT = height;
	 }	 
   TagWin = window.open(url,name,'toolbar=0,location=0,top=' + top + ',left=' + left + ',scrollbars=1,resizable=1' + ',width=' + aWIDTH + ',height=' + aHEIGHT)
   TagWin.focus()
 }

function confirmdelete(href,item,itemname){
 var strMsg
 if (item == 'acc'){
 	strMsg = "You are about to delete the user id '" + itemname + "'. Click OK to continue."
	if (confirm(strMsg)){
		self.location = href}}
}

function openWindow2(url,param,name,width,height,top,left){   
   var TagWin = null;
	 
	 if (width == 0 || height == 0) {
		 var aWIDTH  = screen.width - 5;
		 var aHEIGHT = screen.height - 53;
	}
	else {
		 var aWIDTH  = width;
		 var aHEIGHT = height;
	 }	 
	
    
	url = url + "?fileName=" + escape(param);
	TagWin = window.open(url,name,'toolbar=0,location=0,top=' + top + ',left=' + left + ',scrollbars=1,resizable=1' + ',width=' + aWIDTH + ',height=' + aHEIGHT);
   	TagWin.focus();
 }
