﻿var close_button 	= "yes"
var view_width 		= 450
var view_height 	= 400
var viewer	 	= "no"
var scrollbar 		= "0"
var right_click_on	= "yes"
var right_click_text	= "Działanie prawego przycisku na tej stronie zablokowane."	

function popUp(URL) {
   if (viewer == "no") {
var look='toolbar=0,scrollbars='+scrollbar+',location=0,statusbar=0,menubar=0,resizable=1,width='+view_width+',height='+view_height+','
popwin=window.open("","",look)
}
else 
if (viewer == "yes") {
popwin=window.open()
}
popwin.document.open()
popwin.document.write('<html><head><title>Obrazek powiększony</title>')
popwin.document.write('<link rel=StyleSheet href="corporatestyle.css" type="text/css" media="screen">')
   if (right_click_on == "yes") {
popwin.document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">')
popwin.document.write('<script language="JavaScript">')
popwin.document.write('function noRightClick() {')
popwin.document.write('if (event.button==2) {')
popwin.document.write('alert(\''+right_click_text+'\')')
popwin.document.write('}')
popwin.document.write('}')
popwin.document.write('document.onmousedown=noRightClick')
popwin.document.write('</script>')
}
popwin.document.write('</head>')
popwin.document.write('<body bgcolor="#FFFFFF" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">')
popwin.document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" ><tr><td align="center">')
popwin.document.write('<table cellpadding="0" cellspacing="0" border="1" bordercolor="#000000" style="border-collapse: collapse"><tr><td>')
popwin.document.write('<img src="'+URL+'"><br>')
popwin.document.write('</td></tr></table>')
   if (close_button == "yes") {
popwin.document.write('</td></tr><tr><td valign="bottom" align="center">')
popwin.document.write('<br><form  style="margin: 0px"><input type="button" value="Zamknij okno" onClick=\'self.close()\'  onmouseover="this.className=\'buttonon-popups\'" onmouseout="this.className=\'button-popups\'" class="button-popups"></form><br>')
}
popwin.document.write('<table cellpadding="2" cellspacing="0" bgcolor="#323232" border="0" style="width:100%; height:35px"><tr><td  align="center">')
popwin.document.write('<p style="font-family: Tahoma; color: #FFFFFF; font-size: 12px; align:right"><strong>S-Meble</strong></p>')
popwin.document.write('</td></tr></table>')
popwin.document.write('</td></tr></table><br>')
popwin.document.write('</body>')
popwin.document.close()
}


