﻿function estimate(Unum) {
	document.theForm.action = window.open('estimate.php?Unum='+Unum+'&Pcnt='+document.theForm.Pcnt.value+'','','scrollbars=yes,width=617,height=1000');
	document.theForm.submit();
}

//img
function imageOver(obj) {
	obj.src = obj.src.replace("off.gif", "on.gif");
}
function imageOut(obj) {
	obj.src = obj.src.replace("on.gif", "off.gif");
}


// view popup
function viewshow(viewval) {
	//alert(viewval);
	document.all(viewval).style.display = "block";	
}
function viewhidden(viewval) {
	document.all(viewval).style.display = "none";
}

// Flash 
function FlashLoad(url,w,h,bg,t,code,id){
document.write("\
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<param name='flashVars' value='&"+code+"' />\
<embed src="+url+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' wmode='"+t+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}

//media
function mplayerprint(id,src,width,height)
{
 document.write('<object id="'+id+'" width="'+width+'" height="'+height+'" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" name="MediaPlayer" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">');
 document.write('<param name="src" value="'+src+'" />');

 document.write('<PARAM NAME="AnimationAtStart"         value="0">');
 document.write('<PARAM name="CurrentPosition"          value="0">');
 document.write('<PARAM name="DisplaySize"              value="0">');
 document.write('<param name="DisplayBackColor"         value="1">');
 document.write('<PARAM name="EnableFullScreenControls" value="1">');
 document.write('<PARAM name="ShowControls"             value="0">');
 document.write('<PARAM name="ShowTracker"              value="1">');
 document.write('<PARAM name="ShowAudioControls"        value="1">');
 document.write('<PARAM name="ShowStatusBar"            value="0">');
 document.write('<PARAM name="ShowDisplay"              value="0">');
 document.write('<PARAM name="ShowTracker"              value="1">');
 document.write('<PARAM name="ShowCaptioning"           value="0">');
 document.write('<PARAM name="ShowPositionControls"     value="0">');
 document.write('<PARAM name="SetCurrentEntry"          value="1">');
 document.write('<PARAM name="ClickToPlay"              value="1">');
 document.write('<PARAM name="AutoSize"                 value="1">');
 document.write('<PARAM NAME="TransparentAtStart"      value="-1">');
 document.write('<PARAM name="AutoStart"                value="1">');
 document.write('<PARAM name="AutoResize"               value="1">');
 document.write('<PARAM name="EnableContextMenu"        value="0">');
 document.write('<PARAM name="volume"                   value="1">');
 document.write(' <!--[if !IE]>  <--> ');
 document.write(' <object data="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" type="application/x-mplayer2" id="'+id+'" width="'+width+'" height="'+height+'">');
 document.write(' <param name="src" value="'+src+'" />');
 document.write('<PARAM NAME="AnimationAtStart"         value="0">');
 document.write('<PARAM name="CurrentPosition"          value="0">');
 document.write('<PARAM name="DisplaySize"              value="0">');
 document.write('<param name="DisplayBackColor"         value="1">');
 document.write('<PARAM name="EnableFullScreenControls" value="1">');
 document.write('<PARAM name="ShowControls"             value="0">');
 document.write('<PARAM name="ShowTracker"              value="1">');
 document.write('<PARAM name="ShowAudioControls"        value="1">');
 document.write('<PARAM name="ShowStatusBar"            value="0">');
 document.write('<PARAM name="ShowDisplay"              value="0">');
 document.write('<PARAM name="ShowTracker"              value="1">');
 document.write('<PARAM name="ShowCaptioning"           value="0">');
 document.write('<PARAM name="ShowPositionControls"     value="0">');
 document.write('<PARAM name="SetCurrentEntry"          value="1">');
 document.write('<PARAM name="ClickToPlay"              value="1">');
 document.write('<PARAM name="AutoSize"                 value="1">');
 document.write('<PARAM NAME="TransparentAtStart"      value="-1">');
 document.write('<PARAM name="AutoStart"                value="1">');
 document.write('<PARAM name="AutoResize"               value="1">');
 document.write('<PARAM name="EnableContextMenu"        value="0">');
 document.write('<PARAM name="volume"                   value="1">');

 document.write(' </object> ');
 document.write(' <!--> <![endif]-->');
 document.write('</object>');
}
