<html>
<head>
<title>Post form to new window</title>
<script type="text/javascript">
var win = null;
function NewWindow(formName,w,h) {
var form = document.forms[formName];
var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
var settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars,resizable'
win = window.open('',form.target,settings);
setTimeout('document.forms["'+formName+'"].submit()',300); // give the window time to open
return false; // cancel link
}
</script>
</head>
<body>
<form name="purchaseForm" target="purchaseWin" action="http://ww5.aitsafe.com/cf/add.cfm" method="post">
<input type="hidden" name="product" value="Tungsten Bucking Bar #01" />
<input type="hidden" name="price" value="69.95" />
<input type="hidden" name="scode" value="ETBB01" />
<input type="hidden" name="nocart" />
<input type="hidden" name="units" value="1" />
<input type="hidden" name="return" value="http://www.tungstenheavypowder.com/store/prices.html" />
<noscript>
<input type="image" name="submit" src="http://www.tungstenbuckingbars.com/buy_button.jpg" alt="Buy" />
</noscript>
</form>
<script>
document.write('<a href="#" onclick="return NewWindow(\'purchaseForm\',358,144)"><img src="http://www.tungstenbuckingbars.com/buy_button.jpg" alt="Buy" border="0" /></a>');
</script>
</body>
|