
function imageChange(imageID,imageName)
{
 		 document.images[imageID].src=eval(imageName+".src");
}

function openNewWin(pageURL, windowName, sizeW, sizeH ) 
{
 newwindow = window.open 
 ( 	pageURL,	windowName,	'width='+sizeW+', height='+sizeH+', toolbar=0, resizable=yes, scrollbars=yes ' );
 
 newwindow.focus();
}   



function popFullWin(pageURL, windowName){
	var newWindow = null;
		
	
	strWidth = (screen.availWidth - 10)/2;
	strHeight = (screen.availHeight - 160)/2;
	
	
	var tools="";
	tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	newWindow = window.open(pageURL, windowName, tools);
	newWindow.focus();
}


function ChVisible(Obj1,display,Obj2){
	Obj1.style.display = display;
	try {Obj2.style.display = 'none'}catch(e){};
}

function format(sFormat) {
  try{document.execCommand(sFormat);}catch(e){}
}


function openNewWin(pageURL, windowName, sizeW, sizeH ) 
{
 newwindow = window.open 
 ( 	pageURL,	windowName,	'width='+sizeW+', height='+sizeH+', toolbar=0, resizable=0 ' );
 
 newwindow.focus();
}   


function openNewPreview(pageURL, windowName, sizeW, sizeH ) 
{
 newwindow = window.open 
 ( 	pageURL,	windowName,	'width='+sizeW+', height='+sizeH+', toolbar=0, resizable=1,scrollbars=1 ' );
 
 newwindow.focus();
}   


function SURE(object)
{ return (confirm("You are about to delete this "+object+" permanently. Are you sure?"));}
