var newWindow = null
function makeNewWindow1(a) {

if (!newWindow || newWindow.closed) {
     	newWindow = window.open(a,"subWindow","HEIGHT=500,WIDTH=400,scrollbars=vertical,menubar=no,toolbar=no,location=no,locationbar=no,status=no,resizable=yes,left=200,top=20,screenX=40,screenY=40")
		//newWindow.document.close()
				
	} else {
	// window already exists, so bring it forward
	newWindow.close();
	newWindow = window.open(a,"subWindow","HEIGHT=500,WIDTH=400,scrollbars=vertical,menubar=no,toolbar=no,location=no,locationbar=no,status=no,resizable=yes,left=200,top=20,screenX=40,screenY=40")
	//newWindow.document.close()
	//newWindow.focus()	
	}
}
 	
	// for ads pages
var newWindow2
function makeNewWindow2(b) {
    newWindow2 = window.open(b,"newWindow2","HEIGHT=600,WIDTH=700,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,locationbar=yes,status=no,resizable=yes,left=40,top=40,screenX=40,screenY=40")
		} 

		
	
	var newWindow1
function closeNewWindow() {
           self.close()     }
	  
		

	var backt 
function backWindow(b)  {
 		backt = self.opener(b)
		newWindow.document.close()
		}
		

function reloadParent(){  
window.opener.location.href = window.opener.location;
}
  
  
