<!DOCTYPE HTML PUBLIC "- //W3C //DTD HTML 4.0 Transitional //EN">
<html><head>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<title>JavaScript Examples</title>
<style type="text/css">
<!--
H1, H2, H3, H4, H5, H6 {font-family:"Arial"}
td {font-family:"Arial"}
td {font--size: 10pt}
td {font-weight: bold}
td {border-width: 2px}
table {border-color: #8D89C7}
body {font-family:"Arial"; font-size: 10pt; font-weight:bold}
p {font-family:"Arial"; font-size: 10pt; font-weight:bold}
-->
</style>
<script>
function CheckLease();
{
if (Form.tenure.value == "1-4years")
{
//the window.blur command takes the user's attention from the current screen
//this will have the effect of moving the user's attention to the new window that
//is being opened
window.blur()
myWindow = window.open ("inquire_lease.html","new_question",
" location=no,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,focus=yes,
height=400,width=175,top=50, left=400 ")
}
}
</script>
</head>
<body text="#000080" vlink="#000080" background="graphics/background2.gif" link="#000080">
<center><big>Window Open</big></center>
<cfform name="example_input_a" method="post" datasource="#d_oracle#" username="#u_oracle#" password="#p_oracle#" DEBUG>
<center>
How long do you expect to keep this vehicle?<br>
<cfinput type="radio" name="tenure" value="1-4years">1-4 years<br>
<cfinput type="radio" name="tenure" value="morethan4years">more than 4 years<p>
Do you prefer a new vehicle?<br>
<cfinput type="radio" name="newcarflag" value="yes"
OnClick="CheckLease(); return false;">Yes<br>
<cfinput type="radio" name="newcarflag" value="no">No<br>
<cfinput type="radio" name="newcarflag" value="idontknow">I don't know<br>
</center>
<p align=right>
<input name="submit" type="submit" value="Start the Search!">
</cfform>
<small>
<script language="JavaScript">
// This automatically updates the last modified date for the page.
//
when = document.lastModified
document.write("This page was last modified on: " + when + "<br>")
//
// This automatically updates the location documentation on the page.
where = document.location
document.write("URL: " + where)
</script>
</body></html>
|