function generateLinkC(linktext,clid){

document.write('<form name="webconlinkC"  action="http://www.krames.com/webconnect/kwc.jsp?id='+clid+'" method="POST" target="_blank">'+
               '<input type="hidden" name="refcustom" value="'+document.domain+'"/>'+
               '<a href="#" onclick="document.webconlinkC.submit();">'+linktext+'</a>'+
               '</form>'
               )

}


function generateButtonC(linktext,clid){

document.write('<form name="webconbuttonC"  action="http://www.krames.com/webconnect/kwc.jsp?id='+clid+'" method="POST" target="_blank">'+
               //'<input type="hidden" name="refcustom" value="'+custRef+'"/>'+

               '<input type="hidden" name="refcustom" value="'+document.domain+'"/>'+
               '<input type="submit" value="'+linktext+'">'+
               '</form>'
               )

}


function generateLinkO(linktext,clid){

document.write('<form name="webconlinkO"  action="http://www.krames.com/webconnect/kwc.jsp?id='+clid+'" method="POST" target="_blank">'+
               '<input type="hidden" name="refcustom" value="'+document.domain+'"/>'+
               '<a href="#" onclick="document.webconlinkO.submit();">'+linktext+'</a>'+
               '</form>'
               )

}


function generateButtonO(linktext){

document.write('<form name="webconbuttonO"  action="http://www.krames.com/webconnect/kwc.jsp?id='+clid+'" method="POST" target="_blank">'+
               '<input type="hidden" name="refcustom" value="'+document.domain+'"/>'+
               '<input type="submit" value="'+linktext+'">'+
               '</form>'
               )

}




function generateImage(imageurl,clid){

document.write('<form name="webconimage"  action="http://www.krames.com/webconnect/kwc.jsp?id='+clid+'" method="POST" target="_blank">'+
               '<input type="hidden" name="refcustom" value="'+document.domain+'"/>'+
               

'<a href="javascript: document.webconimage.submit();"><img src="'+imageurl+'" name="Image18" border="0" id="Image18" ></a>'+
               '</form>'
               )

}






function generateLinkProduct(linktext,product,clid){
var no= Math.floor(Math.random()*100);
document.write('<form name="webform'+no+'"  action="http://www.krames.com/OA_HTML/webconnect/kwcP.jsp?id='+clid+'" method="POST" target="_blank">'+
               '<input type="hidden" name="refcustom" value="'+document.domain+'"/>'+
               '<input type="hidden" name="pdt" value="'+product+'"/>'+
               '<a href="#" onclick="document.webform'+no+'.submit();">'+linktext+'</a>'+
               '</form>'
               )

}


function generateImageLinkProduct(imageurl,clid,product){
var x= Math.floor(Math.random()*100);
document.write('<form name="webform'+x+'"  action="http://www.krames.com/webconnect/kwcP.jsp?id='+clid+'" method="POST" target="_blank">'+
               '<input type="hidden" name="refcustom" value="'+document.domain+'"/>'+
               '<input type="hidden" name="pdt" value="'+product+'"/>'+
               '<a href="javascript: document.webform'+x+'.submit();"><img src="'+imageurl+'" name="Image18" border="0" id="Image18" ></a>'+
               '</form>'
               )

}
/*
function generateImageLinkProduct(imageurl,clid,product){
var x= Math.floor(Math.random()*100);
document.write('<form name="webform'+x+'"  action="http://www.krames.com/webconnect/kwcP.jsp?id='+clid+'" method="POST" target="_blank">'+
               '<input type="hidden" name="refcustom" value="'+document.domain+'"/>'+
               '<input type="hidden" name="pdt" value="'+product+'"/>'+
               '<a href="javascript: document.webform'+x+'.submit();"><img src="'+imageurl+'" name="Image18" border="0" id="Image18" ></a>'+
               '</form>'
               )

}*/

