function popup(url,width,height,scrollbars)	{
	if (arguments.length < 2) {width  = 400;}
	if (arguments.length < 3) {height = 600;}
	if (arguments.length < 4) {scrollbars = 'no';}
	window.open(url,"","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=" + scrollbars + ",resizable=yes,width=" + width + ",height=" + height)
}
function displayWindow(url, width, height) {
       var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=yes' );
	Win.focus();
}
/*function act(action) {
	willDelete = confirm("Stop! Are you sure you want to " + action + "?");
	if (willDelete) {return true;} else {return false;}
}*/
function act(action) {
	return confirm("Stop! Are you sure you want to delete this " + action + "?");
}
function pmt(action) {
	return confirm(action);
}
function popHelp(url,width,height,scrollbars) {
	if (arguments.length < 2) {width  = 800;}
	if (arguments.length < 3) {height = 550;}
	if (arguments.length < 4) {scrollbars = 'Yes';}
	window.open(url,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scrollbars + ",resizable=yes,width=" + width + ",height=" + height)
}
function help(txt) {
	document.getElementById("help_text").innerHTML = txt;
}

function showhide(show_id,img_id) {
	if (document.getElementById(show_id).style.display == "none") {
		document.getElementById(show_id).style.display = "inline";
		
	} else {
		document.getElementById(show_id).style.display = "none";
		
	}
}
function showimage(idd,img){
	document.getElementById(idd).style.display = "block";
	if (img.length > 3) {
	document.getElementById('BP').src= img;
			}
	
}
function hideimage(idd,img){
	document.getElementById(idd).style.display = "none";
}

function showhide2(id1,id2) {
	
	if (document.getElementById(id1).style.display == "none") {
		document.getElementById(id1).style.display = "inline";
		document.getElementById(id2).style.display = "none";
	} else {
		document.getElementById(id1).style.display = "none";
		document.getElementById(id2).style.display = "inline";
	}
}

function showhideimage(show_id,img,tx) {
	var imgg = document.getElementById('BP').getAttribute("src");
	//alert(imgg);
	if (document.getElementById(show_id).style.display == "none") {
		document.getElementById(show_id).style.display = "inline";
	 	if (img.length > 0) {
			document.getElementById('BP').src= img;
			document.getElementById('divtext').innerHTML= tx;
			}		
		
	} else if (imgg == img){
		
			//document.getElementById(show_id).style.display = "none";
		
		}
	else{
		document.getElementById('BP').src= img;
		document.getElementById('divtext').innerHTML= tx + "&nbsp;";
		
		
	}
}



function showhide3(id1) {
	getDivs();
	
		document.getElementById(id1).style.display = "inline";
		
}

function getDivs()  
 {  
     var arr = new Array();  
     var arr = document.getElementById("outsidediv").getElementsByTagName("div");  
   
   
     for (i = 0; i < arr.length; i++)  
     {  
          arr[i].style.display = 'none';  
         
     }  
     return ;  
 }  
