var dirWin;

function openWindowDefault(dirUrl){
	specs='menubar=no,scrollbars=yes,resizable=no,width=600,height=700';
	
	if (dirWin == null){
       dirWin = window.open(dirUrl,'dirWin',specs);
	}
    else
    {
    dirWin = window.open(dirUrl,'dirWin',specs);
    }
    dirWin.focus();   
}


function openWindow(dirUrl,width,height){
	specs='menubar=no,scrollbars=yes,resizable=no,width='+width+',height='+height;
	
	if (dirWin == null){
       dirWin = window.open(dirUrl,'dirWin',specs);
	}
    else if (dirWin.closed){
    dirWin = window.open(dirUrl,'dirWin',specs);
    }
    dirWin.focus();   
}

function openNewWindow(dirUrl,width,height){
	specs='menubar=no,scrollbars=no,resizable=yes,width='+width+',height='+height;
	
	if (dirWin == null){
       dirWin = window.open(dirUrl,'dirWin',specs);
	}
    else if (dirWin.closed){
    dirWin = window.open(dirUrl,'dirWin',specs);
    }
    dirWin.focus();   
}
function openWindowMicro(dirUrl){
	specs='menubar=no,scrollbars=yes,resizable=no,width=724,height=700';
	
	if (dirWin == null){
       dirWin = window.open(dirUrl,'dirWin',specs);
	}
    else {
    dirWin.close();        
    dirWin = window.open(dirUrl,'dirWin',specs);        
    }
    dirWin.focus();   
}

function openWindowMicroFH(dirUrl){
	specs='menubar=no,scrollbars=yes,resizable=no,width=762,height=700';
	
	if (dirWin == null){
       dirWin = window.open(dirUrl,'dirWin',specs);
	}
    else {
    dirWin.close();        
    dirWin = window.open(dirUrl,'dirWin',specs);        
    }
    dirWin.focus();   
}

function showT(q){ 
document.getElementById('ima').setAttribute('src',q); 
 }


function clearPreloadPage() { //DOM
if (document.getElementById){
document.getElementById('prepage').style.visibility='hidden';
}else{
if (document.layers){ //NS4
document.prepage.visibility = 'hidden';
}
else { //IE4
document.all.prepage.style.visibility = 'hidden';
}
}
}