function openWindow(pageName) {
	newWindow = window.open(pageName, "newWin", "toolbar=no,location=no,scrollbars=no,width=650,height=420")
} 

function submitTPNLoginvalues()
{	
    document.TPNLogin.submit();
} 

function openPopup(url,pop_width,pop_height) { 
var h,w 
h = screen.height //height of screen, not just the parent window 
w = screen.width //width of the screen, not just the parent window 
var l,t 
l = parseInt((w-pop_width)/2) 
t = parseInt((h-pop_height)/2-20) 
popupWin = window.open(url,'open_window','width='+pop_width+',height='+pop_height+',left='+l+',top='+t+'') 
}

function openPopup2(url,pop_width,pop_height) { 
var h,w 
h = screen.height //height of screen, not just the parent window 
w = screen.width //width of the screen, not just the parent window 
var l,t 
l = parseInt((w-pop_width)/2) 
t = parseInt((h-pop_height)/2-20) 
popupWin = window.open(url,'open_window','width='+pop_width+',height='+pop_height+',left='+l+',top='+t+'') 
}

function openPopupRS(url,pop_width,pop_height) { 
var h,w 
h = screen.height //height of screen, not just the parent window 
w = screen.width //width of the screen, not just the parent window 
var l,t 
l = parseInt((w-pop_width)/2) 
t = parseInt((h-pop_height)/2-20) 
popupWin = window.open(url,'open_window','width='+pop_width+',height='+pop_height+',left='+l+',top='+t+', resizable=1') 
}

function openPopupRS2(url,pop_width,pop_height) { 
var h,w 
h = screen.height //height of screen, not just the parent window 
w = screen.width //width of the screen, not just the parent window 
var l,t 
l = parseInt((w-pop_width)/2) 
t = parseInt((h-pop_height)/2-20) 
popupWin = window.open(url,'open_window','width='+pop_width+',height='+pop_height+',left='+l+',top='+t+', resizable=1') 
}

function openPopupSB(url,pop_width,pop_height) { 
var h,w 
h = screen.height //height of screen, not just the parent window 
w = screen.width //width of the screen, not just the parent window 
var l,t 
l = parseInt((w-pop_width)/2) 
t = parseInt((h-pop_height)/2-20) 
popupWin = window.open(url,'open_window','scrollbars=yes width='+pop_width+' height='+pop_height+'  left='+l+' top='+t+'') 
}

function openPopupSB2(url,pop_width,pop_height) { 
var h,w 
h = screen.height //height of screen, not just the parent window 
w = screen.width //width of the screen, not just the parent window 
var l,t 
l = parseInt((w-pop_width)/2) 
t = parseInt((h-pop_height)/2-20) 
popupWin = window.open(url,'open_window','scrollbars=yes width='+pop_width+' height='+pop_height+'  left='+l+' top='+t+'') 
}


function pulldown_menu()
{
    var url = document.pulldown.selectname.options[document.pulldown.selectname.selectedIndex].value
    window.location.href = url 
}
function pulldown_menu2()
{
    var url = document.pulldown2.selectname2.options[document.pulldown2.selectname2.selectedIndex].value
    window.location.href = url 
}
function pulldown_menu3()
{
    var url = document.pulldown3.selectname3.options[document.pulldown3.selectname3.selectedIndex].value
    window.location.href = url 
}
function submitkbQuery()
{
   //this document.all[] works in IE, you may have to find the equivalent for NS
   queryStr = document.all["search_text"].value;
    window.open("https://forms.phoenix.com/SFDCFrameset/KBSearch.aspx?search=" + queryStr,"newWindow", "width=700, height=600, left=50, top=50, resizable=1");
}


