var win = null
var wp = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,left=50,top=50,"
var wps = "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,left=50,top=25,"

function clspopup(page){
if (win){
if (!win.closed){
if (page != win.name) win.close()
else{
win.focus()
return true
}
}
win = null
}
return false
}
function popupdisc(type){
if (!clspopup(type)){
switch (type){
case 'topping':
win = window.open('/solutions/' + type + '.html',type ,wps + "width=500,height=500")
break
case 'plastic':
win = window.open('/solutions/' + type + '.html',type ,wps + "width=500,height=500")
break
case 'form':
win = window.open('/solutions/' + type + '.html',type ,wps + "width=500,height=500")
break
default:
break
}
}
}
function popup(type){
if (!clspopup(type)){
switch (type){
case 'colorkde':
win = window.open('/products/' + type + '.html',type ,wp + "width=380,height=410")
break
case 'colorkd':
win = window.open('/products/' + type + '.html',type ,wp + "width=380,height=310")
break
case 'colordc':
win = window.open('/products/' + type + '.html',type ,wp + "width=410,height=260")
break
case 'colormq':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=410")
break
case 'colorps':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=410")
break
case 'colorpxp':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=360")
break
case 'colorcj':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=260")
break
case 'colordr':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=260")
break
case 'shapedx':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=260")
break
case 'shapedx2':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=260")
break
case 'shapecx':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=260")
break
case 'shapefs':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=310")
break
case 'shapeffg':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=280")
break
case 'shapefkl':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=290")
break
case 'shapefklx':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=260")
break
case 'shapefc':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=280")
break
case 'shapefgr':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=390")
break
case 'shapefm':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=280")
break
case 'shapefsf':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=350")
break
case 'shapefx':
win = window.open('/products/' + type + '.html',type ,wp + "width=390,height=325")
break
case 'shapefxk':
win = window.open('/products/' + type + '.html',type ,wp + "width=350,height=280")
break
case 'glossary':
win = window.open('/' + type + '.html',type ,wps + "width=390,height=400")
break
case 'contact':
win = window.open('/company/' + type + '.html',type ,wp + "width=470,height=190")
break
case 'msds':
win = window.open('/solutions/' + type + '.html',type ,wp + "width=300,height=240")
break
default:
break
}
}
}