i have created a code which post a uid to a different server on confirm dialog click and on button click it works fine the code below

for confirm box:

Code:
function andpop()
{
var qes   = confirm( " " );
if ( qes )
clicked( '1135' );
}
Button:
Code:
input type="button" value="click" onClick="return clicked('1135');">
...