var dragapproved=false
var z,x,y,t,va,pos,url
va='';
url="http://senthil/olympics";
function move(){
if (event.button==1&&dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.clientY-y
va=va+document.getElementById('r1').style.top;

return false
}
}

function setsize(idname,hsize,wsize){
document.getElementById(idname).height=parseInt(hsize);
document.getElementById(idname).width=parseInt(wsize);
}
function setdefaultsize(idname){
document.getElementById(idname).height=90;
document.getElementById(idname).width=119;
}
function createimg()
{
var g=' '
ppp=window.open("aa.htm","","");
ppp.document.write(' <body topmargin="0" leftmargin="0"> ');
ppp.document.write(document.getElementById("tyb").innerHTML);
ppp.document.write('    <form name="m" method="post" action="attfiles/mail.asp"> ');
ppp.document.write('  <table id="Table_01" width="780" height="158" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111"> ');
ppp.document.write(' 	<tr> <td height="158"> ');
ppp.document.write('<b><font face="MS Sans Serif" color="#008000">Olympic Cards - Online ');
ppp.document.write('            Wedding Card Design</font></b></td> ');
ppp.document.write(' 	</tr>  </table> ');
ppp.document.write(' <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber14" cellpadding="0"> ');
ppp.document.write('   <tr>     <td width="100%"><span style="font-size: 3pt">.</span></td> ');
ppp.document.write('   </tr>  </table> ');
ppp.document.write(' <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber13" cellpadding="0" height="21"> ');
ppp.document.write('   <tr>      <td width="39%" height="21">&nbsp;</td> ');
ppp.document.write(' <td width="61%" height="21">  <p align="center"><b> ');
ppp.document.write('     <font face="Verdana" style="font-size: 8pt" color="#000080"> ');
ppp.document.write('     <a href="home.html" style="text-decoration: none"> ');
ppp.document.write('     <font color="#000000">Home</font></a></font><font face="Verdana" style="font-size: 8pt">&nbsp; ');
ppp.document.write('     </font></b><font face="Verdana" style="font-size: 8pt">|</font><b><font face="Verdana" style="font-size: 8pt">&nbsp; </font><font face="Verdana" style="font-size: 8pt" color="#000080"> ');
ppp.document.write('     <a href="profile.html" style="text-decoration: none"> ');
ppp.document.write('     <font color="#000000">      Profile</font></a></font><font face="Verdana" style="font-size: 8pt">&nbsp; </font></b> ');
ppp.document.write('     <font face="Verdana" style="font-size: 8pt">|</font><b><font face="Verdana" style="font-size: 8pt">&nbsp; </font><font face="Verdana" style="font-size: 8pt" color="#000080"> ');
ppp.document.write('     <a href="products.html" style="text-decoration: none"> ');
ppp.document.write(' <font color="#000000">  Products</font></a></font><font face="Verdana" style="font-size: 8pt">&nbsp; </font></b> ');
ppp.document.write('     <font face="Verdana" style="font-size: 8pt">| </font> ');
ppp.document.write('     <b><font face="Verdana" style="font-size: 8pt">&nbsp;</font><font face="Verdana" style="font-size: 8pt" color="#000080"><a href="bestsellers.html" style="text-decoration: none"><font color="#000000">Best  ');
ppp.document.write('     Sellers</font></a></font><font face="Verdana" style="font-size: 8pt">&nbsp; </font> ');
ppp.document.write('  </b>      <font face="Verdana" style="font-size: 8pt">| </font> ');
ppp.document.write('  <b><font face="Verdana" style="font-size: 8pt">&nbsp;</font><font face="Verdana" style="font-size: 8pt" color="#000080"><a href="feedback.html" style="text-decoration: none"><font color="#000000">Feedback</font></a></font><font face="Verdana" style="font-size: 8pt">&nbsp; </font> ');
ppp.document.write(' </b><font face="Verdana" style="font-size: 8pt">|</font><b><font face="Verdana" style="font-size: 8pt">&nbsp; </font><font face="Verdana" style="font-size: 8pt" color="#000080"> ');
ppp.document.write(' <a href="contactus.html" style="text-decoration: none"> ');
ppp.document.write(' <font color="#000000">Contact Us</font></a></font></b></td> ');
ppp.document.write('  </tr>  </table> ');
ppp.document.write(' <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="776" id="AutoNumber6" cellpadding="0" height="718"> ');
ppp.document.write(' <tr> <td width="161" height="718" valign="top"> ');
ppp.document.write(' <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber7" cellpadding="0"> ');
ppp.document.write('  <tr>     <td width="4%">&nbsp;</td> ');
ppp.document.write('  <td width="104%">  <table border="0" cellspacing="0" style="border-collapse: collapse; font-family:Microsoft Sans Serif; font-size:10px; font-weight:bold" bordercolor="#C0C0C0" width="100%" id="AutoNumber8" cellpadding="0" height="1"> ');
ppp.document.write('   <tr> <td width="180" height="70" align="center" colspan="3"> ');
ppp.document.write(' <p align="left"><b><font face="MS Sans Serif" size="2" color="#FF0000">');
ppp.document.write(' <u>Instructions<br>&nbsp;</u></font></b></td> ');
ppp.document.write(' </tr> <tr> <td width="180" height="70" align="center" colspan="3">');
ppp.document.write(' <p align="left"><span style="font-weight: 400"><font size="2">&nbsp;1) ');
ppp.document.write('  Before sending mail Just click the link below to save your preview in ');
ppp.document.write('         your local machine&nbsp; in html format.<br>');
ppp.document.write('&nbsp;<a href="#" onclick=javascript:document.execCommand("'+'saveAs'+'")>Save to local machine.</a></font></span></td> ');
ppp.document.write(' </tr> <tr>  <td width="180" height="70" align="center" colspan="3"> ');
ppp.document.write('<p align="left"><font size="2"><span style="font-weight: 400">2)  Finally, Attach the saved file to the mail by clicking the below link ');
ppp.document.write(' and click send mail button.<br>&nbsp;&nbsp;');
//ppp.document.write('<a href=javascript:window.open("'+'uploadformsend.asp?t=1,'+'w,'+'scrollbars=yes,width=320,height=200'+'"'+')>');
ppp.document.write('<a href="uploadformsend.asp?t=1" target="_blank">');
ppp.document.write('Attach File</a></span></font></td> ');
ppp.document.write(' </tr> <tr> <td width="60" height="70" align="center"></td> ');
ppp.document.write(' <td width="60" height="70" align="center"></td> <td width="60" height="70" align="center">&nbsp;</td> ');
ppp.document.write(' </tr> <tr> <td width="60" height="70" align="center"> ');
ppp.document.write(' </td> <td width="60" height="70" align="center">  </td> <td width="60" height="70" align="center"> ');
ppp.document.write(' &nbsp;</td> </tr> <tr> <td width="60" height="70" align="center"> ');
ppp.document.write('</td> <td width="60" height="70" align="center"> </td> <td width="60" height="70" align="center"> ');
ppp.document.write(' &nbsp;</td> </tr> <tr>   <td width="60" height="70"></td>  <td width="60" height="70"></td> ');
ppp.document.write('<td width="60" height="70">&nbsp;</td> </tr> <tr> <td width="147" height="1" colspan="3"></td> ');
ppp.document.write(' </tr> <tr> <td width="60" height="70"></td> <td width="60" height="70"></td>        <td width="60" height="70"> ');
ppp.document.write('&nbsp;</td> </tr> <tr> <td width="60" height="70"><font face="Arial" size="2">        <a href="leftimg1/hindu/22.gif"> ');
ppp.document.write('<img border="0" oncontextmenu="return false" src="images/blank.gif" width="60" height="70"></a></font></td> ');
ppp.document.write(' <td width="60" height="70" style="border-left: 1px solid #FFFFFF; border-right: 1px solid #FFFFFF; border-top-width: 1; border-bottom: 1px solid #FFFFFF; ; border-top-color:#FFFFFF"><font face="Arial" size="2"> ');
ppp.document.write(' <a href="leftimg1/hindu/23.gif">  <img border="0" oncontextmenu="return false" src="images/blank.gif" width="60" height="70"></a></font></td> ');
ppp.document.write(' <td width="60" height="70" style="border-left: 1px solid #FFFFFF; border-top-width: 1; border-bottom: 1px solid #FFFFFF; ; border-right-color:#FFFFFF; border-top-color:#FFFFFF"><font face="Arial" size="2"> ');
ppp.document.write(' <a href="leftimg1/hindu/27.gif"> <img border="0" oncontextmenu="return false" src="images/blank.gif" width="60" height="70"></a></font></td> ');
ppp.document.write(' </tr>  </table>  </td>  </tr>  </table>  </td>  <td width="16" height="718" background="images/line4.gif">&nbsp;</td> ');
ppp.document.write('     <td width="427" height="718" valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1"> ');
ppp.document.write(' <div align="center">   <center>   <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="422" id="AutoNumber10" cellpadding="0" height="179"> ');
ppp.document.write('  <tr> <td width="422" height="28" valign="top">  <font face="MS Sans Serif" size="2">Name</font></td> ');
ppp.document.write(' </tr>  <tr> <td width="422" height="72" align="left" valign="top">  <input type="text" name="T1" size="20"></td> ');
ppp.document.write('  </tr> <tr> <td width="422" height="19">  <font face="MS Sans Serif" size="2">Email ID</font></td> ');
ppp.document.write('</tr> <tr> <td width="422" height="72" align="left" valign="top"> ');
ppp.document.write('<p><input type="text" name="T2" size="20"><br>');
ppp.document.write('<input type="text" name="T3" size="20" value=""></td> ');
ppp.document.write(' </tr> <tr><td width="422" height="19"> ');
ppp.document.write(' <font face="MS Sans Serif" size="2">Description/Comments</font></td> ');
ppp.document.write('</tr> <tr> <td width="422" height="72"> <p align="left"><textarea rows="3" name="S1" cols="45"></textarea><input type="submit"  value="Send mail" name="b1"></td> ');
ppp.document.write(' </tr>   </table>   </center>  </div> <table border="0" cellspacing="0" style="border-collapse: collapse" width="422" id="AutoNumber11" cellpadding="0" height="386"> ');
ppp.document.write('   <tr> <td width="422" height="2"><hr color="#FFFFFF" width="95%"> ');
ppp.document.write('<input type="button" value="Sent Mail" name="B3"  style="color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #FFFFFF"></td> ');
ppp.document.write('  </tr>  <tr> <td width="422" height="369"><p align="center"> ');
ppp.document.write('  <font face="Arial" size="2"><br> ');
ppp.document.write('    <img id="card" border="0"  oncontextmenu="return false" src="'+document.getElementById('card').src+'" width="'+document.getElementById('card').width+'" height="'+document.getElementById('card').height+'" > ');
ppp.document.write(' </font></td>   </tr><tr><td height="1" width="422"><font face="Tahoma" size="2"> ');
ppp.document.write('   <br> </font>&nbsp; <br><br> &nbsp; <br><font face="Tahoma" size="2"> ');
ppp.document.write('  <br> <br>&nbsp;</font></td></tr> ');
ppp.document.write('   <tr><td height="1" width="422">   <tr> <td width="422" height="48"> ');
ppp.document.write('   &nbsp;</td> </tr>  <tr>   <td width="422" height="35"> ');
ppp.document.write('  &nbsp;</td>    </tr><tr>   <td width="422" height="1"> ');
ppp.document.write('  <p style="margin-top: 0; margin-bottom: 6">    <font face="Arial"> ');
ppp.document.write('  <input type="button" value="Hide    " name="B35"  style="color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #FFFFFF"></font></p> ');
ppp.document.write('          </td>    </tr>   <tr> ');
ppp.document.write('  <td width="422" height="1">    </td> ');
ppp.document.write('        </tr>        <tr>     <td width="422" height="1">           </td>     </tr>  <tr> ');
ppp.document.write('          <td width="422" height="1">    </td>  </tr> <tr>    <td width="422" height="1">    </td></tr> <tr> <td width="422" height="1"> ');
ppp.document.write('  </td> </tr></table> </td>       <td width="7" height="718" background="images/line4.gif">&nbsp;</td>       <td width="165" height="718" valign="top"> ');
ppp.document.write('      <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber9" cellpadding="0" height="111">         <tr>           <td width="60" height="70" align="center"> ');
ppp.document.write('          &nbsp;</td>           <td width="60" height="70" align="center">           &nbsp;</td> ');
ppp.document.write('          <td width="60" height="70" align="center">   <font face="Arial" size="2"> ');
ppp.document.write('      <a href="leftimg1/hindu/42.gif">     <img border="0" oncontextmenu="return false" src="images/blank.gif" width="60" height="70"></a></font></td>         </tr> ');
ppp.document.write('        <tr>        <td width="60" height="70" align="center"></td> ');
ppp.document.write('          <td width="60" height="70" align="center"></td> ');
ppp.document.write('          <td width="60" height="70" align="center">&nbsp;</td>         </tr>         <tr>        <td width="60" height="70" align="center"></td> ');
ppp.document.write('          <td width="60" height="70" align="center"></td>           <td width="60" height="70" align="center">&nbsp;</td> ');
ppp.document.write('        </tr>  <tr>           <td width="60" height="70" align="center">&nbsp;</td> ');
ppp.document.write('          <td width="60" height="70" align="center">&nbsp;</td> ');
ppp.document.write('          <td width="60" height="70" align="center">&nbsp;</td>     </tr> ');
ppp.document.write('        <tr>           <td width="60" height="70">           <p align="center"></td>        <td width="60" height="70">        </td> ');
ppp.document.write('          <td width="60" height="70">        &nbsp;</td> ');
ppp.document.write('        </tr>      <tr>        <td width="60" height="70">           <p align="center"></td>        <td width="60" height="70"> ');
ppp.document.write('    </td>        <td width="60" height="70">           &nbsp;</td>         </tr>      <tr>        <td width="60" height="70"></td> ');
ppp.document.write('    <td width="60" height="70"></td>        <td width="60" height="70">           &nbsp;</td> ');
ppp.document.write('        </tr>     <tr>        <td width="60" height="70">        </td>           <td width="60" height="70">        </td>        ');
ppp.document.write('          <td width="60" height="70">&nbsp;</td>     </tr>     <tr>        <td width="34%" height="1"> ');
ppp.document.write('          <font face="Arial" size="2">        <a href="leftimg2/10.gif">           <img border="0" oncontextmenu="return false" src="images/blank.gif" width="60" height="70"></a></font></td> ');
ppp.document.write('          <td width="33%" height="1">    <font size="2" face="Arial"><a href="leftimg1/hindu/30.gif"> ');
ppp.document.write('          <img border="0" oncontextmenu="return false" src="images/blank.gif" width="60" height="70"></a></font></td> ');
ppp.document.write('     <td width="33%" height="1"></td>      </tr>      </table>       </td>  </tr></table> ');
ppp.document.write('  <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber15" cellpadding="0"> ');
ppp.document.write('    <tr>       <td width="100%" bgcolor="#FFFFFF">    </td>     </tr></table> ');
ppp.document.write('    </form>  </body>');

//ppp.document.close();
}
function drags(){
if (!document.all)
return
if (event.srcElement.className=="drag"){
dragapproved=true
z=event.srcElement
temp1=z.style.pixelLeft
temp2=z.style.pixelTop
x=event.clientX
y=event.clientY
document.onmousemove=move
}
}
function ups(){
dragapproved=false
}
document.onmousedown=drags
document.onmouseup=ups

var gl;
var gll;
function rightaligning(srcs)
{
if(document.all.leftvalue.value==0)
{

(srcs=="")?srcs=gl:gl=srcs;

document.getElementById('r1').src=srcs;
document.getElementById('r1').width=119;
document.getElementById('r1').height=90;
document.all.leftvalue.value=1;
document.getElementById('r1').style.visibility="visible";
}
else {
document.getElementById('r2').src=srcs;
document.getElementById('r2').width=119;
document.getElementById('r2').height=90;
document.all.leftvalue.value=0;
document.getElementById('r2').style.visibility="visible";
}
}
function leftaligning(srcs)
{
if(document.all.leftvalue.value==0)
{
(srcs=="")?srcs=gll:gll=srcs;
document.getElementById('l1').src=srcs;
document.getElementById('l1').width=119;
document.getElementById('l1').height=90;
document.all.leftvalue.value=1;
document.getElementById('l1').style.visibility="visible";
}
else {
(srcs=="")?srcs=gll:gll=srcs;
document.getElementById('l2').src=srcs;
document.getElementById('l2').width=119;
document.getElementById('l2').height=90;
document.all.leftvalue.value=0;
document.getElementById('l2').style.visibility="visible";
}
}
function Vrotate(){
document.all.card.width=225;
document.all.card.height=350;
}
function Hrotate(){
document.all.card.width=350;
document.all.card.height=225;
}
function cardalign(srcs)
{
document.getElementById('card').src=srcs;
document.getElementById('card').width=350;
document.getElementById('card').height=225;
}
function hiden(ids)
{
document.getElementById(ids).style.visibility="hidden";
}
function setleft()
{
leftside.style.left=document.all.T5.value;
leftside.style.top=document.all.T4.value;
}
function setright()
{
rightside.style.left=document.all.T8.value;
rightside.style.top=document.all.T9.value;
}
function setconten()
{
conten.style.left=document.all.T2.value;
conten.style.top=document.all.T3.value;
}
function txtalign()
{

conten.innerText =document.all.T1.value;
conten.style.color =document.all.D4.options[document.all.D4.selectedIndex].value;
conten.style.fontFamily =document.all.D3.options[document.all.D3.selectedIndex].value;
conten.style.fontSize=document.all.D2.options[document.all.D2.selectedIndex].value;
//conten.style.left=b.substring(0,b.indexOf(','));
//conten.style.top=b.substring(b.indexOf(',')+1,b.length);
conten.style.visibility="visible";
}
function txtalign1()
{
conten1.innerText =document.all.T2.value;
conten1.style.color =document.all.D4.options[document.all.D4.selectedIndex].value;
conten1.style.fontFamily =document.all.D3.options[document.all.D3.selectedIndex].value;
conten1.style.fontSize=document.all.D2.options[document.all.D2.selectedIndex].value;
//conten.style.left=b.substring(0,b.indexOf(','));
//conten.style.top=b.substring(b.indexOf(',')+1,b.length);
conten1.style.visibility="visible";
}
function txtalign2()
{
conten2.innerText =document.all.T3.value;
conten2.style.color =document.all.D4.options[document.all.D4.selectedIndex].value;
conten2.style.fontFamily =document.all.D3.options[document.all.D3.selectedIndex].value;
conten2.style.fontSize=document.all.D2.options[document.all.D2.selectedIndex].value;
//conten.style.left=b.substring(0,b.indexOf(','));
//conten.style.top=b.substring(b.indexOf(',')+1,b.length);
conten2.style.visibility="visible";
}

