function popitup(url)
{
	newwindow=window.open(url,'name','toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=500,left=150,top=80');
	
}

function popproducts(id)
		{
 		 	win = open("" + id + ".asp","newWindow","toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=420,left=250,top=160");
		}



function tmt_winControl(id,c){ 
	var d=eval(id)==null||eval(id+".closed");
	if(!d){eval(id+"."+c);}
}

function edit_asset(id)
		{
 		 	win = open("" + id + ".asp","newWindow","toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=420,left=250,top=160");
		}

function prev_asset(id)
		{
 		 	win = open("" + id + ".asp","newWindow","toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=550,height=450,left=170,top=140");
		}

function prev_asset_attach(id)
		{
 		 	win = open("" + id + ".asp","newWindow","toolbar=no,location=0,directories=yes,status=no,menubar=yes,scrollbars=yes,resizable=no,width=660,height=500,left=150,top=120");
		}

function preview(id)
		{
			win = open("/admin/products/" + id + ".asp","newWindow","toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=450,left=200,top=160");
		}		
				
function previewproj(id)
		{
			win = open("/admin/projects/" + id + ".asp","newWindow","toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=450,left=200,top=160");
		}		
		
function ref(id)
		{
			win = open("/references/popup_" + id + ".htm","newWindow","toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=450,left=200,top=160");
		}		
		
function popup(id)
		{
			win = open("popup/popup_" + id + ".htm","newWindow","toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=550,height=380");
		}
		
function popups(id)
		{
			win = open("/popups/" + id + ".htm","newWindow","toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=500,left=120,top=140");
		}
		
		
function print(id)
		{
			win = open("" + id + ".asp","newWindow","toolbar=yes,location=0,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=380,left=120,top=140");
		}


function surfto(form)
		{
			var myindex=form.select1.selectedIndex
			if (form.select1.options[myindex].value != "0") {
			location=form.select1.options[myindex].value;}
		}
		

function position() {
		var height = (document.all) ? document.body.clientHeight : window.innerHeight;
	    var width  = (document.all) ? document.body.clientWidth : window.innerWidth;
		var myScroll = (document.all) ? document.body.scrollTop : window.pageYOffset;
		var objCSS = (document.layers) ? document.layer:(document.all)?document.all.layer.style:document.getElementById('layer').style;
	
		objCSS.top = (height + myScroll) - 75; // 31 Is the pixel height of the image used.
	    objCSS.left = parseInt(width - 140); // 44 Is the half of the pixel width of the image.
	}

function init() {
				   define('Lastname', 'string', 'Lastname');
				   define('Company', 'string', 'Company');
				   
				   
				   define('email', 'email', 'email');
				   }

