var helpWindow=null;
var contactUsWindow=null; 
var cmsWindow=null; 
var ParisWindow=null; 
var bDEBUG=0;

var bScreen;

if (((agent_isNS) || (agent_isIE) || (agent_isMac) || (agent_isFF)) && (is_major >=4)) 
	bScreen = true;
else
	bScreen = false;
	
//----------------------------------------
function showHelpWindow(url)
{ // open the help window
if( bDEBUG )  alert( "showHelpWindow" )

    var w, h, l, t;

    w = 450;
    h = 500;
    t = 0;

    if(bScreen == true)  
        {
        h = screen.availHeight * 0.8;
        if(agent_isIE == true)
            l = screen.availWidth - w - 12
        else    
            l = screen.availWidth - w
        }    

    helpWindow=window.open(url,'_HelpWindow','status=no, location=no, menubar=no, toolbar=no, scrollbars=yes, resizable=yes, directories=no, width=' + w + ', height=' + h );
	helpWindow.moveTo( l , t );
    helpWindow.focus();
	return false;
}
//--------------------------------
//----------------------------------------

function showContactUsWindow(url)
{ // open the feedback window  
if( bDEBUG )  alert( "showContactUsWindow" )

    var w, h, l, t;

    w = 700;
    h = 500;
    t = 50;
    l = 50;

    if(bScreen == true)  
        {
        w = screen.availWidth - 100
        h = screen.availHeight - 150
        }    

    contactUsWindow=window.open(url,'_ContactUsWindow','status=no, location=no, menubar=no, toolbar=no, scrollbars=yes, resizable=yes, directories=no, width=' + w + ', height=' + h );
	contactUsWindow.moveTo( l , t );
    contactUsWindow.focus();
	return false;
}
//--------------------------------
//----------------------------------------
function showCMSWindow(url)
{ // open the CMS window  
if( bDEBUG )  alert( "showCMSWindow" )

    cmsWindow=window.open(url,'_cmsWindow','status=yes, location=yes, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes, directories=yes');
    cmsWindow.focus();
	return false;
}
//--------------------------------
//----------------------------------------
function showParisWindow(url)
{ // open the PARIS window  
if( bDEBUG )  alert( "showParisWindow" )

    cmsWindow=window.open(url,'_ParisWindow','status=yes, location=yes, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes, directories=yes');
    cmsWindow.focus();
	return false;
}

//PARIS-375
	function showWebsite(x)
	    {
        if( x != '' )
          {
          var ws = document.getElementById( x ).value;
          if( ws.length > 0 )
            {
            if( ws.indexOf('http') == -1 )
              ws = 'http://' + ws;
	        var winHnd = window.open( ws );
	        winHnd.focus();
	        }
	      }
	    }

//PARIS-375
	function showWebsite(x)
	    {
        if( x != '' )
          {
          var ws = document.getElementById( x ).value;
          if( ws.length > 0 )
            {
            if( ws.indexOf('http') == -1 )
              ws = 'http://' + ws;
	        var winHnd = window.open( ws );
	        winHnd.focus();
	        }
	      }
	    }
	    
