function setwindowname()
{  
window.name = 'base';
}

function openwindow(url, name, width, height, scroll, status, menubar, resizable, directories, location)
{  
popupWin = window.open(url, name, 'width=' + width + ',height=' + height + ',scrollbars=' + scroll, + ',status=' + status + ',menubar=' + menubar + ',resizable=' + resizable + ',directories=' + directories + ',location=' + location)	
popupWin.location.href = url
popupWin.focus()
}

function openCallWin() {
	winCallMe = openPopUp("/request_call","winCallMe",470,410,5,5,false,false);	
	winCallMe.focus();
	self.opener = winCallMe;
}

function openFlashDemoWin(htmlPage) {
	winFlashDemo = openPopUp(htmlPage,"winFlashDemo",600,800,0,0,false,false);	
	winFlashDemo.focus();
	self.opener = winFlashDemo;
}

function openNewsletterFlashWin(htmlPage) {
	winNewsletterFlash = openPopUp(htmlPage,"winNewsletterFlash",520,920,0,0,false,false);	
	winNewsletterFlash.focus();
	self.opener = winNewsletterFlash;
}

function openPopUp(snUrl,windowName,height,width,top,left,scroll,resize) {
	if (top != null) top = "top=" + top + ",";
	if (left != null) left = "left=" + left + ",";
	
	return window.open(snUrl, windowName, "width=" + width 
		+ ",height=" + height 
		+ "," + top + left 
		+ "scrollbars=" + (scroll ? "yes" : "no") 
		+ ",resizable=" + (resize ? "yes" : "no")
		+ "," + "toolbar=no,menubar=no,location=no,status=no");
}
