// JavaScript Document
var oPopup = window.createPopup();

	
function openIT(source,url)
{
		oPopup.document.body.innerHTML = "<table width='340' height='400' border='0' cellpadding='0' cellspacing='0' style='border: 1px inset #7F9741;'>  <tr bgcolor='#7F9741'>     <td width='321' height='19' onClick='parent.oPopup.hide();'>"+
			"<!-- Header Image-->&nbsp;"+
			"</td>  <td width='17'><img src='Main/cerrar.gif' onClick='parent.oPopup.hide();'></td>  </tr>  <tr>     <td colspan='2' valign='top'><table height=100%  width=100% cellpadding=0 cellspacing=0 border=3><tr><td onClick='parent.oPopup.hide();'>"+
			"<img src="+url+" border=0>"+
			"</td></tr></table></td> </tr></table>";
		source = 	document.getElementById(source);
		var lefter = event.offsetY+100;
		var topper = event.offsetX+300;
		oPopup.show(topper, lefter, 342,423,source);
}


function openITStat(url, gen, uz)
{
	// it gets called by the rfq.aspx
//	window.open("rfq.aspx","","top=5000,left=5000,width=342height=423,scrollbars="+sc);
	window.open('rfq.aspx','RFQ','width=342,height=490');
}
function openITStatWOSB(url, gen, uz)
{
		/////////////////////////////////////////////
		//This are the attributes you can customize//
		/////////////////////////////////////////////
		//var B = "pics/" + url + ".htm";        // URL
		var B = url ;        // URL
		var Y = url;                 // title
		var K = "popups/palm_header.jpg";             // titlebarImage
		var L = 25;                                            // titlebarHeight
		var E = "Arial";                                       // titleFont
		var I = 5;                                            // titleSize
		var N = "#000000";                                     // titleColor
		var C = false;                                         // scrollbars
		var h = gen +6;                                       // width (w)   
		var r =  uz +6;                                       // height (h)   
		var o = true;                                          // centered
		var m = 10;                                            // xPos
		var e = 10;                                            // yPos
		var l = "#7F9741";                                     // borderColor
		var e_= 5;                                             // borderSize
		var s = "MAIN/minimizar.gif";            // minimizeBottom
		var s_= "MAIN/cerrar.gif";               // closeBottom
myChromeless = new ChromelessWindow(B,Y,K,L,E,I,N,C,h,r,o,m,e,l,e_,s,s_);myChromeless.openChromeless();
}

function openIT2(url, gen, uz)
{
		/////////////////////////////////////////////
		//This are the attributes you can customize//
		/////////////////////////////////////////////
		//var B = "pics/" + url + ".htm";        // URL
		var B = "large.asp?"+"image="+ url ;        // URL
		var Y = url;                 // title
		var K = "images/rfq_header.jpg";             // titlebarImage
		var L = 25;                                            // titlebarHeight
		var E = "Arial";                                       // titleFont
		var I = 5;                                            // titleSize
		var N = "#000000";                                     // titleColor
		var C = false;                                         // scrollbars
		var h = gen +6;                                       // width (w)   
		var r =  uz +6;                                       // height (h)   
		var o = true;                                          // centered
		var m = 10;                                            // xPos
		var e = 10;                                            // yPos
		var l = "#7F9741";                                     // borderColor
		var e_= 5;                                             // borderSize
		var s = "MAIN/minimizar.gif";            // minimizeBottom
		var s_= "MAIN/cerrar.gif";               // closeBottom
myChromeless = new ChromelessWindow(B,Y,K,L,E,I,N,C,h,r,o,m,e,l,e_,s,s_);myChromeless.openChromeless();
}
function openITHeader(url,header, gen, uz)
{

	// function openITHeader(url,header, gen, uz)
    
	//"<img src='"+url+"' width=333 height = 394>";
	oPopup.document.body.innerHTML = "<table width='340' height='400' border='0' cellpadding='0' cellspacing='0' style='border: 1px inset #7F9741;'>  <tr bgcolor='#7F9741'>     <td width='321' height='19'>"+
		"<img src='"+header+"'>"+
		"</td>    <td width='17'><img src='Main/cerrar.gif' onClick='parent.oPopup.hide();'></td>  </tr>  <tr>     <td colspan='2' valign='top'><table height=100%  width=100% cellpadding=0 cellspacing=0 border=3><tr><td>"+
		"<img src='"+url+"'>"+
		"</td></tr></table></td> </tr></table>";	
    //oPopup.show(0, 26, 200,45, source);
	var lefter = 500;
    var topper = 660;
	oPopup.show(topper, lefter, 343,429,this.parent.document.body);

// Create a new popup over here and then display it
//		var s_top=document.all? document.body.scrollTop : window.pageYOffset
//		new popUp(200, s_top+100, 333, 394, "Div", "Put all of your content text in here.<br><br>You can also place HTML code in here too, such as a picture: <img src=\"max.gif\">. Notice how a backslash must proceed every quotation (\") that appears in your HTML content.", "white", "black", "bold 10pt sans-serif", "Title Bar", "navy", "white", "#dddddd", "gray", "black", true, true, true, true, false);
}
