//openit ITA
function openit(Attribute_str) {

if(Attribute_str=='EXTRA SECURITY')
    attr_page = "pr_attr01.php";
if(Attribute_str=='UNIQUE KEY COMBINATION AVAILABLE')
    attr_page = "pr_attr02.php";
if(Attribute_str=='AVAILABLE KEYED ALIKE')
    attr_page = "pr_attr03.php";
if(Attribute_str=='AVAILABLE KEYED TO DIFFER')
    attr_page = "pr_attr04.php";
if(Attribute_str=='AVAILABLE KEYED DIFFERENT')
    attr_page = "pr_attr04.php";
if(Attribute_str=='MASTER KEYED')
    attr_page = "pr_attr05.php";
if(Attribute_str=='DIFFERENT LOCK TYPES, ONE KEY')
    attr_page = "pr_attr06.php";
if(Attribute_str=='CHANGEABLE KEY COMBINATION')
    attr_page = "pr_attr07.php";
if(Attribute_str=='N A M A COMPLIANT')
    attr_page = "pr_attr08.php";
if(Attribute_str=='DOUBLE LOCKING')
    attr_page = "pr_attr09.php";
if(Attribute_str=='WEATHER RESISTANT')
    attr_page = "pr_attr10.php";
if(Attribute_str=='SOLDER TERMINAL OPTION')
    attr_page = "pr_attr11.php";
if(Attribute_str=='SPADE TERMINAL OPTION')
    attr_page = "pr_attr12.php";
if(Attribute_str=='PIN TUMBLER')
    attr_page = "pr_attr13.php";
if(Attribute_str=='RADIAL PIN TUMBLER')
    attr_page = "pr_attr14.php";
if(Attribute_str=='DISC TUMBLER')
    attr_page = "pr_attr15.php";
if(Attribute_str=='IDENTIFY YOUR KEY')
    attr_page = "Identify_key.php";	
if(Attribute_str=='IP65 WEATHER RESISTANCE')
    attr_page = "IP65_resistance.php";
if(Attribute_str=='LEFT OR RIGHT HAND OPENING')
    attr_page = "Left-right-hand-opening.php";
if(Attribute_str=='SUITABLE FOR INTERNAL GASKETING APPLICATIONS')
    attr_page = "internal_gasketing.php";
if(Attribute_str=='RoHS COMPLIANT')
    attr_page = "RoHS.php";
if(Attribute_str=='HIGHER SECURITY LOCKING AVAILABLE')
    attr_page = "Higher-security.php";
if(Attribute_str=='AVAILABLE LEFT HAND OPENING')
    attr_page = "Left-hand-opening.php";
if(Attribute_str=='AVAILABLE RIGHT HAND OPENING')
    attr_page = "Right-hand-opening.php";
if(Attribute_str=='SUITABLE FOR EXTERNAL GASKETING APPLICATIONS')
    attr_page = "external-gasketing.php";	
if(Attribute_str=='EARTHING')
    attr_page = "Earthing.php";
if(Attribute_str=='ADVANCED SEARCH OPTIONS')
    attr_page = "Search-options.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);
    }

	
	
}


