
//----------------------------------------------------------------------||
// FUNCTION:    ImageExchange											||
// PARAMETERS:  ProductName                                            	||
// RETURNS:     N/A              										||
// PURPOSE:     Change image based on selected options			        ||
//----------------------------------------------------------------------||
function getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; 
 if(!o)
 	o=document; 
 if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

function showProjectDetails(fileName, windowWidth, windowHeight) {

	if (fileName != '')
		myRef = window.open('http://www.saucermanci.com/portfolio/' + fileName,'mywin','left=20,top=20,width=' + windowWidth + ',height=' + windowHeight + ',resizable=yes,scrollbars=yes,titlebar=no,dependent=yes,toolbar=0');

}

