// JavaScript Document
// List of functions used in PTLGLOBAL.COM

//
// Open new browser window and load image
//
  function openWin(imgsrc) {
        leftPos = 0
		topPos = 0
		winSizex = 600
		winSizey = 480
		if (screen) {
			leftPos = screen.width-winSizex
		}
		
	    newWindow = window.open('', 'newWin', 'scrollbars=yes,width='+winSizex+',height='+winSizey+',left='+leftPos+'top='+topPos)
		
    	newWindow.document.writeln("<html>")
		newWindow.document.writeln("<head></head>")
		newWindow.document.writeln("<body><center><p></p>")
		newWindow.document.writeln("<img src="+imgsrc+">")
		newWindow.document.writeln("<h3><p><a href='' onClick='self.close()'>Close Window</a></p></h3>")
        newWindow.document.writeln("</center></body></html>")

   }

//
// For using with <form> then poin to an URL once click it
//
   function gotoURL(urlLOC) {
   	 newLOC = urlLOC.options[urlLOC.selectedIndex].value
	 
	 if (newLOC != "") {
	    window.location.href = newLOC
	 }	 
   }
