
function rollOver1(sId)
{
        var elm = document.getElementById(sId);
        if (elm)
        {
            elm.style.color = "#c00";
        }
}

function rollOver2(sId)
{
        var elm = document.getElementById(sId);
        if (elm)
        {
            elm.style.color = "rgb(255,255,255)";
        }
}
function openUrlNewWin(s, sWidth, sHeight)
{
    sWidth += 20;
    sHeight += 25;
    newWin = window.open(s, "newWin" + getRandomInt(10000), "width=" + sWidth + ",height=" + sHeight + ",left=40,top=40,dependent=yes,location=no,resizable=no,scrollbars=no,status=no");
}

function getRandomInt(max)
{
    return Math.round( Math.random() * (max-1) );
}

function PrintParts(arrElementNames)
{
	alert("If you have popup windows blocked, please press and hold down the Ctrl key, and click OK to print");
	var objWindow=window.open("about:blank", "print", "left=0, top=0, width=10, height=10, toolbar=no, scrollbars=no");
	var strHtml="<html>";
	strHtml += "<head>";
	strHtml += "</head>";
	strHtml += "<body><h2>TECHSTAR HOMES LTD.</h2><hr /><br />";
	for (var i=0; i<arrElementNames.length; i++)
	{
		var element=document.getElementById(arrElementNames[i]);
		strHtml += element.innerHTML;
	}
	strHtml += "</body>";
	strHtml += "</html>";
	objWindow.document.write(strHtml);
	objWindow.document.close();
	objWindow.print();
	objWindow.close();
}

function popup(url) 
{
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';

 newwin=window.open(url,'windowname4', params);
 if (window.focus) {newwin.focus()}
 return false;
}
