//Openit DE

function openit(Attribute_str) {

if(Attribute_str=='EXTRA SICHERHEIT')
    attr_page = "pr_attr01.php";
//if ((Attribute_str.indexOf('EINZIGARTIGE') )==0)EINZIGARTIGE SCHLÜSSELKOMBINATION 
if (((Attribute_str.indexOf('EINZIGARTIGE SCH') )!=-1)&&((Attribute_str.indexOf('SELKOMBINATION') )!=-1))
    attr_page = "pr_attr02.php";
if ((Attribute_str.indexOf('GLEICH') )==0)
//if(Attribute_str=='GLEICH SCHLIESSEND')
    attr_page = "pr_attr03.php";
if(Attribute_str=='VERSCHIEDEN SCHLIESSEND')
    attr_page = "pr_attr04.php";
if(Attribute_str=='HAUPTSCHLIESSANLAGEN')
    attr_page = "pr_attr05.php";
//if(Attribute_str=='UNTERSCHIEDLICHE SCHLOSSTYPEN, EIN SCHL&UumlSSEL')
if (((Attribute_str.indexOf('UNTERSCHIEDLICHE SCH') )!=-1)&&((Attribute_str.indexOf('SSEL') )!=-1))
    attr_page = "pr_attr06.php";
if (((Attribute_str.indexOf('NDERBARE') )!=-1)&&((Attribute_str.indexOf('SELKOMBINATIONEN') )!=-1))
//if(Attribute_str=='&AumlNDERBARE SCHL&UumlSSELKOMBINATIONEN')
    attr_page = "pr_attr07.php";
if(Attribute_str=='N A M A-KONFORM')
    attr_page = "pr_attr08.php";
if(Attribute_str=='DOPPELVERRIEGELUNG')
    attr_page = "pr_attr09.php";
if(Attribute_str=='WETTERFESTIGKEIT')
    attr_page = "pr_attr10.php";
if (((Attribute_str.indexOf('TANSCH') )!=-1)&&((Attribute_str.indexOf('LUSSOPTION') )!=-1))
//if(Attribute_str=='L&OumlTANSCHLUSSOPTION')
    attr_page = "pr_attr11.php";
if(Attribute_str=='FLACHANSCHLUSSOPTION')
    attr_page = "pr_attr12.php";
if(Attribute_str=='ZYLINDERSCHLOSS')
    attr_page = "pr_attr13.php";
if(Attribute_str=='RADIALSTIFTZYLINDERSCHLOSS')
    attr_page = "pr_attr14.php";
//if ((Attribute_str.indexOf('ZYLINDERSCHLOSS') )==0)
if (((Attribute_str.indexOf('ZYLINDERSCHLOSS') )!=-1)&&((Attribute_str.indexOf('TTCHENZUHALTUNG') )!=-1))
//if(Attribute_str=='ZYLINDERSCHLOSS MIT PL&AumlTTCHENZUHALTUNG')
    attr_page = "pr_attr15.php";

newWindow = window.open(attr_page, '', 'width=628,height=333');
}


function openit2(Attribute_str) {

var w=0, h=0, bw, bh, bl, bt, topPos, leftPos;
if (document.all)
{
bw = document.body.clientWidth;
bh = document.body.clientHeight;
bl = window.screenLeft;
bt = window.screenTop;
}
else if (document.layers)
{
bw = window.outerWidth;
bh = window.outerHeight;
bl = window.screenX;
bt = window.screenY;
}

leftPos = Math.floor((bw-w)/2) + bl;
topPos = Math.floor((bh-h)/2) + bt;

if(Attribute_str=='SwitchMains'){
    attr_page = "Switchmodules_mains.php";
w=430;
h=660;

attributes = "width=" + w + ",height=" + h + ",top=" + topPos + ",left=" + leftPos;
popUpWin = window.open (attr_page, "winName", attributes);
    }
if(Attribute_str=='SwitchLaws'){
w=430;
h=685;
    attr_page = "Switchmodules_laws.php";
attributes = "width=" + w + ",height=" + h + ",top=" + topPos + ",left=" + leftPos;
popUpWin = window.open (attr_page, "winName", attributes);
}
if(Attribute_str=='ADVANCED SEARCH OPTIONS'){
    attr_page = "Search-options.php";
w=300;
h=320;

attributes = "width=" + w + ",height=" + h + ",top=" + topPos + ",left=" + leftPos;
popUpWin = window.open (attr_page, "winName", attributes);
    }
	
if(Attribute_str=='HOOKED_CAMS'){
    attr_page = "hooked_cam_diagram.php";
w=600;
h=580;

attributes = "width=" + w + ",height=" + h + ",top=" + topPos + ",left=" + leftPos;
popUpWin = window.open (attr_page, "winName", attributes);
    }
	
	if(Attribute_str=='HOLE PUNCHED'){
    attr_page = "hole_punched.php";
w=600;
h=640;

attributes = "width=" + w + ",height=" + h + ",top=" + topPos + ",left=" + leftPos;
popUpWin = window.open (attr_page, "winName", attributes);
    }


}
